Skip to contents

Check if group by exist in data

Usage

is_validGroupBy(data, group_by)

Arguments

data

The data framecontaining the variables to be used for model fitting.

group_by

Column name in data representing the grouping variable

Value

TRUE if exist otherwise an error is raised

Examples

is_validGroupBy(mtcars, 'mpg')
#> [1] TRUE