Learn R Programming

rtables (version 0.4.0)

with_label: Return an object with a label attribute

Description

Return an object with a label attribute

Usage

with_label(x, label)

Arguments

x

an object

label

label attribute to to attached to x

Value

x labeled by label. Note: the exact mechanism of labeling should be considered an internal implementation detail, but the label will always be retrieved via obj_label.

Examples

Run this code
# NOT RUN {
x <- with_label(c(1,2,3), label = "Test")
obj_label(x)
# }

Run the code above in your browser using DataLab