Assert if group_models TRUE then group_col not NULL
Source:R/utils_asserts.R
assert_group_models.Rd
Assert if group_models TRUE then group_col not NULL
Arguments
- group_col
Column name(s) of group(s) to use in
dplyr::group_by()
when supplying type, calculating mean absolute scaled error on data involving time series, and ifgroup_models
, then fitting and predicting models too. IfNULL
, not used. Defaults to"iso3"
.- group_models
Logical, if
TRUE
, fits and predicts models individually onto eachgroup_col
. IfFALSE
, a general model is fit across the entire data frame.