Aggregates sub monthly time series into a monthly resolution, aggregations are carried out to the calendar day not a rolling time period.
Usage
monthlyAgg(x, method = "mean", ...)
# S3 method for data.table
monthlyAgg(x, method = "mean", ...)
# S3 method for HydroImport
monthlyAgg(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 calendar month, data are not stored in a HydroAggs
container.
Examples
data(bewdley)
## Monthly minimum flow
monthlyAgg(bewdley, method = "min")
#> dateTime Monthly_Min
#> <char> <num>
#> 1: 2008 10 25.30
#> 2: 2008 11 49.40
#> 3: 2008 12 37.30
#> 4: 2009 1 21.10
#> 5: 2009 2 27.30
#> ---
#> 165: 2022 6 8.60
#> 166: 2022 7 8.40
#> 167: 2022 8 7.91
#> 168: 2022 9 7.99
#> 169: 2022 10 11.10