powered by
This function combines a pair of group/group_level or variable/variable_level columns into a single column. The group_level or variable_level column is renamed according to the value of the group or variable column, respectively.
group
group_level
variable
variable_level
rename_ard_columns( x, columns = c(all_ard_groups(), all_ard_variables()), unlist = NULL )
data frame
(data.frame) a data frame
data.frame
(tidy-select) Name of columns to coalesce together and rename.
tidy-select
(tidy-select) Columns to unlist. Often useful when performing visual inspection of the results where the list-columns are more difficult to work with.
ADSL |> ard_categorical(by = ARM, variables = AGEGR1) |> apply_fmt_fn() |> rename_ard_columns(unlist = c(stat, stat_fmt))
Run the code above in your browser using DataLab