powered by
Setting the Label Attribute to Data Frame Columns
attr_label_df(df, label)
data.frame with label attributes.
data.frame
(data.frame).
(character) the labels to add.
character
res <- attr_label_df(mtcars, letters[1:11]) res lapply(res, attr, "label")
Run the code above in your browser using DataLab