Learn R Programming

dunlin (version 0.1.10)

attr_label_df: Setting the Label Attribute to Data Frame Columns

Description

Setting the Label Attribute to Data Frame Columns

Usage

attr_label_df(df, label)

Value

data.frame with label attributes.

Arguments

df

(data.frame).

label

(character) the labels to add.

Examples

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

Run the code above in your browser using DataLab