View source: R/utils_average_trend.R
| get_average_df | R Documentation | 
Produces averaged data frame that can then be passed for modelling.
get_average_df(df, cols, average_cols, weight_col = NULL)
| df | Data frame of model data. | 
| cols | Name of numeric column(s) to take average of. | 
| average_cols | Column name(s) of column(s) for use in grouping data for averaging, such as regions. If missing, uses global average of the data for infilling. | 
| weight_col | Column name of column of weights to be used in averaging, such as country population. | 
Data frame of cols averaged across average_cols
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.