attr_label: Setting the Label Attribute

View source: R/utils.R

attr_labelR Documentation

Setting the Label Attribute

Description

Setting the Label Attribute

Usage

attr_label(var, label)

Arguments

var

(object) whose label attribute can be set.

label

(character) the label to add.

Value

object with label attribute.

Examples

x <- c(1:10)
attr(x, "label")

y <- attr_label(x, "my_label")
attr(y, "label")

dunlin documentation built on Oct. 31, 2024, 5:07 p.m.