hyet_aggregate uses an hyetograph, single or grouped (i.e. from hyet_split) and a predefined time-step to aggregate precipitation records. Returns an error if hyet is not a valid hyetograph.

hyet_aggregate(hyet, time_step, ts_unit)

Arguments

hyet

an hyetograph from hyet_create function.

time_step

a numeric value that represents the time-step.

ts_unit

a character string specifying the time unit. Valid values are "mins", "hours", "days", "months", "quarter" or "year".

Value

a tibble with the aggregated hyetograph.

Examples

prec30min <- prec5min %>% hyet_aggregate(30, "mins")