Data Tidying

Functions to add rows and columns of dates and discharge conversions to daily streamflow data frames to prepare for custom analyses.

fill_missing_dates()

Fills data gaps of missing dates

add_date_variables()

Add year, month, and day of year variable columns to daily flows

add_seasons()

Add a column of seasons

add_rolling_means()

Add rolling n-day average column(s) to daily flows

add_basin_area()

Add a basin area column to daily flows

add_daily_volume()

Add a daily volumetric flows column to daily flows

add_daily_yield()

Add a daily volumetric water yield column to daily flows

add_cumulative_volume()

Add a daily cumulative volumetric flows column to daily flows

add_cumulative_yield()

Add a daily cumulative water yield column to daily flows

Data Screening

Functions to calculate and plot statistics to screen data for outliers, gaps, and missing dates.

plot_flow_data()

Plot a daily streamflow data set

plot_flow_data_symbols()

Plot daily streamflow data with their symbols

screen_flow_data()

Calculate annual summary and missing data statistics for screening data

plot_data_screening()

Plot annual summary statistics for data screening

plot_missing_dates()

Plot annual and monthly missing dates

plot_annual_symbols()

Plot daily streamflow data symbols by year

Flow Summary Statistics

Functions to calculate and plot mean, median, minimum, and selected percentiles flows. Can select duration (e.g. 7-day, 30-day) of statistics using ‘roll_days’ arguments.

calc_daily_stats()

Calculate daily summary statistics

plot_daily_stats()

Plot daily summary statistics

calc_monthly_stats()

Calculate monthly summary statistics

plot_monthly_stats()

Plot monthly summary statistics

plot_monthly_stats2()

Plot monthly summary statistics (as ribbons)

plot_monthly_means()

Plot monthly means and percent LTMADs

calc_annual_stats()

Calculate annual summary statistics

plot_annual_stats()

Plot annual summary statistics (as lines)

plot_annual_stats2()

Plot annual summary statistics (as ribbons)

plot_annual_means()

Plot annual means compared to the long-term mean

calc_longterm_daily_stats()

Calculate long-term summary statistics from daily mean flows

plot_longterm_daily_stats()

Plot long-term summary statistics from daily mean flows

calc_longterm_monthly_stats()

Calculate long-term summary statistics from annual monthly mean flows

plot_longterm_monthly_stats()

Plot long-term summary statistics from annual monthly mean flows

calc_longterm_mean()

Calculate the long-term mean annual discharge

calc_longterm_percentile()

Calculate long-term percentiles

calc_flow_percentile()

Calculate the percentile rank of a flow value

plot_flow_duration()

Plot flow duration curves

Cumulative/Total Discharge Summary Statistics

Functions to calculate and plot mean, median, minimum, and selected percentiles flows for years (or seasons) by volume (cubic metres) or by area-based water yield (mm) using the ‘use_yield’ and ‘basin_area’ arguments.

calc_annual_cumulative_stats()

Calculate annual (and seasonal) total cumulative flows

plot_annual_cumulative_stats()

Plot annual (and seasonal) total cumulative flows

calc_monthly_cumulative_stats()

Calculate cumulative monthly flow statistics

plot_monthly_cumulative_stats()

Plot cumulative monthly flow statistics

calc_daily_cumulative_stats()

Calculate cumulative daily flow statistics

plot_daily_cumulative_stats()

Plot cumulative daily flow statistics

Annual Statistics

Functions to calculate and plot various annual statistics.

calc_annual_lowflows()

Calculate annual low flows and dates

plot_annual_lowflows()

Plot annual low flows and dates

calc_annual_highflows()

Calculate annual high flows and dates

plot_annual_highflows()

Plot annual high flows and dates

calc_annual_extremes()

Calculate annual high and low flows

plot_annual_extremes()

Plot annual high and low flows

plot_annual_extremes_year()

Plot annual high and low flows for a specific year

calc_annual_flow_timing()

Calculate annual timing of flows

plot_annual_flow_timing()

Plot annual timing of flows

plot_annual_flow_timing_year()

Plot annual timing of flows for a specific year

calc_annual_normal_days()

Calculate annual days above and below normal

plot_annual_normal_days()

Plot annual count of normal days and days above and below normal

plot_annual_normal_days_year()

Plot days above normal, below normal and normal for a specific year

calc_all_annual_stats()

Calculate all fasstr annual statistics

Functions to compute and plot prewhitened, non-parametric annual trends on streamflow data.

compute_annual_trends()

Calculate prewhitened nonlinear annual trends on streamflow data

Volume Frequency Analyses

Functions to compute and plot volume frequency analyses on annual low or high streamflow data (or custom data).

compute_annual_frequencies()

Perform an annual low or high-flow frequency analysis

compute_frequency_quantile()

Calculate an annual frequency analysis quantile

compute_hydat_peak_frequencies()

Perform a frequency analysis on annual peak statistics from HYDAT

compute_frequency_analysis()

Perform a custom volume frequency analysis

Computing a Full Analysis

Functions to compute a suite of data and plots from many of the fasstr functions.

compute_full_analysis()

Compute a suite of tables and plots from various fasstr functions

write_full_analysis()

Write a suite of tables and plots from various fasstr functions into a directory

Writing Functions

Functions to save the outputted objected (tibbles and lists of plots) from the fasstr functions

write_flow_data()

Write a streamflow dataset as a .xlsx, .xls, or .csv file

write_results()

Write a data frame as a .xlsx, .xls, or .csv file

write_plots()

Write plots from a list into a directory or PDF document

write_objects_list()

Write all data frames and plots from a list of objects into a directory

Superseded

Functions that are still supported but no longer receive active development, as better solutions now exist.

calc_annual_outside_normal()

Calculate annual days above and below normal

calc_annual_peaks()

Calculate annual high and low flows

plot_annual_outside_normal()

Plot annual days above and below normal