View source: R/rename_ard_columns.R
| rename_ard_columns | R Documentation |
Rename the grouping and variable columns to their original column names.
rename_ard_columns(
x,
columns = c(all_ard_groups("names"), all_ard_variables("names")),
fill = "{colname}",
unlist = NULL
)
x |
( |
columns |
( |
fill |
(scalar/glue) |
unlist |
data frame
# Example 1 ----------------------------------
ADSL |>
ard_tabulate(by = ARM, variables = AGEGR1) |>
apply_fmt_fun() |>
rename_ard_columns() |>
unlist_ard_columns()
# Example 2 ----------------------------------
ADSL |>
ard_summary(by = ARM, variables = AGE) |>
apply_fmt_fun() |>
rename_ard_columns(fill = "Overall {colname}") |>
unlist_ard_columns()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.