hyet_aggregate: Aggregate an hyetograph using a predefined time-step

Description Usage Arguments Value Examples

View source: R/hyet_aggregate.R

Description

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.

Usage

1
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

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

kvantas/hyetor documentation built on Sept. 2, 2019, 12:57 a.m.