assert_group_models: Assert if group_models TRUE then group_col not NULL

View source: R/utils_asserts.R

assert_group_modelsR Documentation

Assert if group_models TRUE then group_col not NULL

Description

Assert if group_models TRUE then group_col not NULL

Usage

assert_group_models(group_col, group_models)

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 if group_models, then fitting and predicting models too. If NULL, not used. Defaults to "iso3".

group_models

Logical, if TRUE, fits and predicts models individually onto each group_col. If FALSE, a general model is fit across the entire data frame.


caldwellst/augury documentation built on Oct. 10, 2024, 8:20 a.m.