attr_label_df: Setting the Label Attribute to Data Frame Columns

View source: R/utils.R

attr_label_dfR Documentation

Setting the Label Attribute to Data Frame Columns

Description

Setting the Label Attribute to Data Frame Columns

Usage

attr_label_df(df, label)

Arguments

df

(data.frame).

label

(character) the labels to add.

Value

data.frame with label attributes.

Examples

res <- attr_label_df(mtcars, letters[1:11])
res
lapply(res, attr, "label")

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