
Last chance! 50% off unlimited learning
Sale ends in
Setting the Label Attribute
attr_label(var, label)
object
with label attribute.
(object
) whose label attribute can be set.
(character
) the label to add.
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