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)
hyet | an hyetograph from |
---|---|
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". |
a tibble with the aggregated hyetograph.
prec30min <- prec5min %>% hyet_aggregate(30, "mins")