Merge two grouping var columns into one.
construct_grouping_var.Rd
Merge two grouping var columns into one.
Arguments
- dat
Data frame with a
group
column.- grouping_vars
Character vector containing maximal two column names in
dat
that should be used to distinguish between subgroups. If two columns are provided, they will be merged internally into one.- group_var
Name of the
group
column in your data. Defaults togroup
.