Skip to contents

Set the label attribute of a column in a data frame

Usage

set_lbl(df, var, lbl)

Arguments

df

a dataframe.

var

a column of the dataframe

lbl

the label

Value

the dataframe with the replaced label