Description Usage Arguments Details Value Functions
Use new key to aggregate tsbl_vars.
1 2 3 4 5 | aggregate_tsbl_vars(tsbl_vars, by, .fun = median, ...)
industry_median(tsbl_vars)
industry_mean(tsbl_vars)
|
tsbl_vars |
A tsibble of time series vars. |
by |
A character of key field. |
.fun |
A function to aggregate numeric variables. |
... |
Arguments passed on to .fun. |
industry_median()
/industry_mean()
is a wrapper of aggregate_tsbl_vars()
.
A tsibble aggregated by new key
industry_median
: Aggregate mean of tsbl_vars by industries.
industry_mean
: Aggregate median of tsbl_vars by industries.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.