rvn_annual_quantiles {RavenR} | R Documentation |
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
)
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 |
mm |
month of water year ending (default 9) |
Value
qdat |
Time series object of monthly median and quantile values |
Author(s)
Leland Scantlebury, leland@scantle.com
Examples
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)
[Package RavenR version 2.2.2 Index]