| prep_label | R Documentation |
Adds a label column which is a combination of stat_label (for continuous
variables) and variable_level (for categorical ones) if these 2 columns are
present in the input data frame.
prep_label(df)
df |
(data.frame) |
a data.frame with a label column (if the input has the required
columns) or the input unchanged.
df <- data.frame(
variable_level = c("d", "e", "f"),
stat_label = c("a", "b", "c"),
stat_name = c("n", "N", "n"),
context = c("categorical", "continuous", "hierarchical")
)
prep_label(df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.