powered by
Setting the Label Attribute
attr_label(var, label)
object with label attribute.
object
(object) whose label attribute can be set.
(character) the label to add.
character
x <- c(1:10) attr(x, "label") y <- attr_label(x, "my_label") attr(y, "label")
Run the code above in your browser using DataLab