Label attribute.
label(x)
label(x) <- value
setLabel(x, value)
has.label(x)label(x) <- value: Set label attribute.
setLabel(): Set label attribute.
has.label(): Check for label attribute.
x <- 1:10
label(x) <- "Foo"
x <- setLabel(x, "Foo") # Alternative syntax
has.label(x)
#> [1] TRUE
label(x)
#> [1] "Foo"