Learn R Programming

RavenR (version 2.2.0)

rvn_annual_quantiles: Calculates Yearly Median, Upper and Lower Quantiles of Flow

Description

Calculate the quantiles for each day of the year based on the supplied time series.

Usage

rvn_annual_quantiles(
  hgdata,
  prd = NULL,
  Qlower = 0.1,
  Qupper = 0.9,
  water_year = TRUE,
  mm = 9
)

Value

qdat

Time series object of monthly median and quantile values

Arguments

hgdata

Time series object of observed or simulated flows

prd

time period for subset in character format "YYYY-MM-DD/YYYY-MM-DD"

Qlower

Decimal percentage of lower quantile value (default 0.1)

Qupper

Decimal percentage of upper quantile value (default 0.9)

water_year

boolean on whether to sort quantiles by water year start date (default TRUE)

mm

month of water year ending (default 9)

Author

Leland Scantlebury, leland@scantle.com

Examples

Run this code
system.file("extdata","run1_Hydrographs.csv", package="RavenR") %>%
rvn_hyd_read(.) %>%
rvn_hyd_extract(subs="Sub36",.) ->
hyd_data

# Calculate quantiles for the simulated hydrograph
qdat <- rvn_annual_quantiles(hyd_data$sim)
head(qdat)

Run the code above in your browser using DataLab