calculate_other_flow_stats: Function to return the OtherStats statistics for a given data...

Description Usage Arguments Value Examples

View source: R/calculate_other_flow_stats.r

Description

This is a function to compute the 7 statistics of daily streamflow. Input to the function is a time series of streamflow with date in the format Y-m-d. Output is a vector of OtherStats 1) mean, 2) median, 3) cv, 4) cv daily, 5) l7Q10, 6) l7Q2, 7) return_10 and 8) flow percentiles.

Usage

1
calculate_other_flow_stats(flow_data, digits = 3)

Arguments

flow_data

A dataframe containing a NWCCompare flow dataset. Should have been cleaned by validate_data

digits

A numeric. Number of digits to round indice values

Value

OtherStats data frame of calculated statistics

Examples

1
2
3
4
5
library(EflowStats)
flow_data<-obs_data
flow_data$date <- as.Date(flow_data$date)
flow_data <- validate_data(flow_data, yearType = "water")
calculate_other_flow_stats(flow_data)

USGS-R/NWCCompare documentation built on Aug. 3, 2017, 1:46 a.m.