View source: R/aggregate_to_monthly.R
aggregate_to_monthly | R Documentation |
A riversCentralAsia data set can be of type discharge, precipitation, and temperature whereby temerature may be mean, minimum or maximum. The function aggregate_data aggregates all sub-monthly data in the data tibble to monthly data, according to the type-function pair given in the second argument. The user specifies which aggregation function to use for each data type using timetk's summarise_by_time.
aggregate_to_monthly(dataTable, funcTypeLib)
dataTable |
A tibble of the format |
funcTypeLib |
is a list of functions with associated data types that
will be applied to the data. Currently, the aggregation functions
|
Returns a tibble of the same format as data
with data
aggregated to monthly time steps and "mon" in the resolution
column.
Returns 1 if aggregation fails.
Other Helper functions:
%>%()
,
cutRaster2Basin()
,
decadeMaker()
,
generateSeqDates()
,
hyear()
,
monDateSeq()
,
posixct2rsminerveChar()
dataTable <- ChirchikRiverBasin funcTypeLib <- list(mean = c("Q", "T"), sum= "P") data_mon <- aggregate_to_monthly(dataTable, funcTypeLib)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.