View source: R/utils_asserts.R
assert_group_sort_col | R Documentation |
Takes in formula variables and average columns, as well as sort column argument.
If sort_col
is provided, an error is generated if it is not
in formula_vars
or average_cols
. If sort_col
is not provided, then
warnings are generated that no average trend can be generated.
assert_group_sort_col(formula_vars, average_cols, sort_col)
formula_vars |
Variables included in the model formula, generated by
|
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. |
sort_col |
Column name(s) to use to |
Column name for sorting averaged data to generate trend.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.