| add_labels | R Documentation |
Add labels to selected data frame columns
add_labels(data, labels)
data |
A data frame. |
labels |
Named character vector or named list of labels. |
A tibble with column-level label attributes where names matched.
dat <- data.frame(a = 1:2, b = 3:4)
labelled <- add_labels(dat, c(a = "Column A"))
attr(labelled$a, "label")
attr(labelled$b, "label")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.