Learn R Programming

dtlg (version 0.0.2)

with_label: Add a label attribute to an object

Description

Add a label attribute to an object

Usage

with_label(x, label)

Value

x labeled by label.

Arguments

x

An R object.

label

A label provided as a single string.

See Also

label()

Examples

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

Run the code above in your browser using DataLab