Simple check on the grouping variable
check.valid.groups(
group.var = NULL,
data.df = NULL,
cor.vars = NULL,
verbose = FALSE
)
list with data.df, indexes of variables to which the grouping should be applied to and the associated group for each observation as integer.
Name of grouping variable.
data frame of all variables including the variable specified in group.var
as factor.
Name(s) of variables to which the grouping should be applied to.
when TRUE additional information is printed. Defaults to FALSE.