add_treat_grps
allows you to specify specific groupings. This is done
by supplying named arguments, where the name becomes the new treatment
group's name, and those treatment groups are made up of the argument's
values.
add_total_group
is a simple wrapper around add_treat_grps
.
Instead of producing custom groupings, it produces a "Total" group by the
supplied name, which defaults to "Total". This "Total" group is made up of
all existing treatment groups within the population dataset.
Note that when using add_treat_grps
or add_total_row()
with
set_pop_data()
, you should call add_total_row()
AFTER calling
set_pop_data()
, otherwise there is potential for unexpected behaivior
with treatment groups.
The function treat_grps
allows you to see the custom treatment groups
available in your tplyr_table
object