Assign and extract the 'label'
attribute on an R object. set_labels
is
does the same as labels(x) <- value
but returns x
for use in a pipe chain.
# S3 method for data.frame
labels(object, ...)# S3 method for keep_labels
labels(object, ...)
labels(x) <- value
set_labels(x, value)
# S3 method for keep_labels
labels(x) <- value
# S3 method for data.frame
labels(x) <- value
Other arguments (not in use at this time).
An R object.
A vector or list containing labels to assign. Labels are assigned based on
names, if available; otherwise, they're assigned in order. Can pass NULL
to remove all labels.
The labels of object
, or object
with new labels.
The data.frame
methods put labels on and extract labels from
the columns of object
.