attr_label.Rd
Setting the Label Attribute
attr_label(var, label)
(object) whose label attribute can be set.
object
(character) the label to add.
character
object with label attribute.
x <- c(1:10) attr(x, "label") #> NULL y <- attr_label(x, "my_label") attr(y, "label") #> [1] "my_label"