Allows easy computation of summaries across runoff datasets with user defined functions. The functions provided are run either individually for, or across, each runoff/downscaled/discharge timeseries in an HS* object.
ensemble_summary( HS, summarise_over_timeseries = FALSE, aggregate_monthly = FALSE, funs = c("min", "mean", "median", "max"), drop = FALSE, ..., verbose = FALSE )
HS |
|
---|---|
summarise_over_timeseries | Apply function(s) column-wise (to
each timeseries separately, |
aggregate_monthly | Return results as averages for the 12 months of the
year? Defaults to |
funs | Functions to evaluate. By default, computes |
drop | Drop existing timeseries in |
... | Additional arguments passed to |
verbose | Indicate progress, or not. Defaults to |
Returns the input HS
object, or a list, where
runoff/downscaled/discharge is replaced with the computed summaries.
Applicable functions take a vector of numeric values as input, and return a single numerical value.