var_labels | R Documentation |
data.frame
Variable labels can be stored as a label
attribute for each variable.
This functions returns a named character vector with the variable labels
(or empty strings if not specified).
var_labels(x, fill = FALSE)
x |
( |
fill |
( |
a named character vector of variable labels from x
, with names corresponding
to variable names.
x <- iris
var_labels(x)
var_labels(x) <- paste("label for", names(iris))
var_labels(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.