update_ard | R Documentation |
Functions used to update ARD formatting functions and statistic labels.
This is a helper function to streamline the update process. If it does not exactly meet your needs, recall that an ARD is just a data frame and it can be modified directly.
update_ard_fmt_fn(
x,
variables = everything(),
stat_names,
fmt_fn,
filter = TRUE
)
update_ard_stat_label(
x,
variables = everything(),
stat_names,
stat_label,
filter = TRUE
)
x |
( |
variables |
( |
stat_names |
( |
fmt_fn |
( |
filter |
( |
stat_label |
( |
an ARD data frame of class 'card'
ard_continuous(ADSL, variables = AGE) |>
update_ard_fmt_fn(stat_names = c("mean", "sd"), fmt_fn = 8L) |>
update_ard_stat_label(stat_names = c("mean", "sd"), stat_label = "Mean (SD)") |>
apply_fmt_fn()
# same as above, but only apply update to the Placebo level
ard_continuous(
ADSL,
by = ARM,
variables = AGE,
statistic = ~ continuous_summary_fns(c("N", "mean"))
) |>
update_ard_fmt_fn(stat_names = "mean", fmt_fn = 8L, filter = group1_level == "Placebo") |>
apply_fmt_fn()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.