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()

Add rows of missing dates and fill missing flow values with NA

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

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

Basic 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

calc_annual_stats()

Calculate annual summary statistics

plot_annual_stats()

Plot annual summary statistics

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 Summary Statistics

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

calc_annual_cumulative_stats()

Calculate annual (and seasonal) cumulative flows

plot_annual_cumulative_stats()

Plot annual (and seasonal) 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 Hydrograph Statistics

Functions to calculate and plot various annual statistics.

calc_annual_flow_timing()

Calculate annual timing of flows

plot_annual_flow_timing()

Plot annual timing of flows

calc_annual_lowflows()

Calculate annual low flows and dates

plot_annual_lowflows()

Plot annual low flows and dates

calc_annual_peaks()

Calculate annual peak flows

calc_annual_outside_normal()

Calculate annual days above and below normal

plot_annual_outside_normal()

Plot annual days above and below normal

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