calculate_stat_flow_perc: Function to return the requested flow percentiles for a given...

Description Usage Arguments Value Examples

View source: R/utilities.R

Description

This function accepts a data frame containing daily data and a list of desired percentiles and returns a list of the requested percentiles

Usage

1
2
calculate_stat_flow_perc(flow_data, probs = c(0.1, 0.25, 0.5, 0.75, 0.9,
  0.15))

Arguments

flow_data

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

probs

vector containing requested percentile value(s)

Value

obs_percentiles requested flow percentiles for the given data frame

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_stat_flow_perc(flow_data, probs=c(.1,.25,.5,.75))

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