| .derive_overall_labels | R Documentation |
Transform the "..cards_overall.." and "..hierarchical_overall.." labels
into "Overall <variable_name>" and "Any <variable_name>" respectively.
Also it ensures the labels are unique (in case they already exist) with
make.unique() which appends a sequence number.
.derive_overall_labels(x, cur_col = dplyr::cur_column())
x |
(character) content of target (current) column |
cur_col |
(character) name of current column |
a character vector
data <- dplyr::tibble(
ARM = c("..cards_overall..", "Overall ARM", NA, "BB", NA),
TRTA = c(NA, NA, "..hierarchical_overall..", "C", "C")
)
data |>
dplyr::mutate(
dplyr::across(
ARM:TRTA,
cards:::.derive_overall_labels
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.