Assigns a label to a vector or data frame, or returns value stored
in the object's label attribute (or NA if none exists).
label(x, all = FALSE, fallback = FALSE, simplify = FALSE)
label(x) <- valueAn R object to extract labels from.
Logical. When x is a data frame, setting this argument to
TRUE will make the function return all variable labels. By default,
its value is FALSE, so that if x is a data frame, it is the data
frame's label that will be returned.
a logical value indicating if labels should fallback to
object name(s). Defaults to FALSE.
When x is a data frame and all = TRUE, coerce results
to a vector and remove NA's. Default is FALSE.
String to be used as label. To clear existing labels, use NA
or NULL.
Dominic Comtois, dominic.comtois@gmail.com,