Aggregates sub daily time series into a daily resolution, aggregations are carried out to the calendar day not a rolling time period.
Usage
dailyAgg(x, method = "mean", ...)
# S3 method for data.table
dailyAgg(x, method = "mean", ...)
# S3 method for HydroImport
dailyAgg(x, method = "mean", ...)
Arguments
- x
Data generated in the riskyData package
- method
'mean', 'median', 'max', 'min', or 'sum'
- ...
Other variables as required
Value
An aggregated dataset taken to the daily resolution, data are not stored in a HydroAggs
container.
Examples
data(bewdley)
# Daily maximum flows
dailyAgg(bewdley, method = "max")
#> dateTime dailyMax
#> <Date> <num>
#> 1: 2008-10-01 37.0
#> 2: 2008-10-02 75.1
#> 3: 2008-10-03 72.7
#> 4: 2008-10-04 114.0
#> 5: 2008-10-05 135.0
#> ---
#> 5110: 2022-09-27 10.7
#> 5111: 2022-09-28 11.0
#> 5112: 2022-09-29 12.7
#> 5113: 2022-09-30 12.0
#> 5114: 2022-10-01 12.0