attr_label_df {dunlin}R 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")

[Package dunlin version 0.1.7 Index]