Skip to contents

label() gets the attached label to an object.

Usage

label(x)

Arguments

x

An R object.

Value

The label attribute (string) associated with object passed in x or NULL if the label attribute does not exist.

See also

Examples

label(1)
#> NULL
label(with_label(1, "my label"))
#> [1] "my label"