Description Usage Arguments Value Examples
Apply an Hmisc-brand label to a single variable in a dataframe or tibble
1 | apply_label(df, x, lbl)
|
df |
A data frame or tibble. |
x |
Unquoted name of the column to be labeled. |
lbl |
Quoted label. |
A data frame or tibble.
1 2 3 4 5 6 | foo <- tibble(a = c(1,2,3),
b = c(4, 5,6)) %>%
apply_label(a, "A") %>%
apply_label(b, "B")
label(foo)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.