| var_labels<- | R Documentation |
data.frameVariable labels can be stored as the label attribute for each variable.
This functions sets all non-missing (non-NA) variable labels in a data.frame.
var_labels(x) <- value
x |
( |
value |
( |
x with modified variable labels.
x <- iris
var_labels(x)
var_labels(x) <- paste("label for", names(iris))
var_labels(x)
if (interactive()) {
View(x) # in RStudio data viewer labels are displayed
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.