Learn R Programming

dtlg (version 0.0.2)

label: Retrieve the label of an object

Description

label() gets the attached label to an object.

Usage

label(x)

Value

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

Arguments

x

An R object.

See Also

with_label()

Examples

Run this code
label(1)
label(with_label(1, "my label"))

Run the code above in your browser using DataLab