add_climatology | R Documentation |
The climatology is the average over years (and members for ensemble forecases), taken separately for each month, season, and coordinate. By default, the average is taken over all years in the data table, but you can change this using the years-argument. By default, climatologies (averages) are calculated for each column that is not recognized as dimension variable and does not contain characters.
add_climatology(dt, data_cols = NULL, years = NULL, by = dimvars(dt))
dt |
the data table. |
data_cols |
For which columns do you want to derive the climatology? The default i |
years |
The average over which years should be considered as climatology. The default is all years in dt. |
by |
column names to group by. |
The provided data table with an extra climatology column
dt = add_climatology(chirps_monthly)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.