Assign and extract the 'label' attribute on an R object. set_labels is
the same as labels(x) <- value but returns x for use in a pipe chain.
set_attr is the same as attr(x, which) <- value but returns x
for use in a pipe chain.
# S3 method for class 'data.frame'
labels(object, ...)
# S3 method for class 'keep_labels'
labels(object, ...)
labels(x) <- value
# S3 method for class 'keep_labels'
labels(x) <- value
# Default S3 method
labels(x) <- value
# S3 method for class 'data.frame'
labels(x) <- value
set_labels(x, value)
set_attr(x, which, value)The labels of object, or object with new labels.
The data.frame methods put labels on and extract labels from
the columns of object.