Label a variable

ff_label(.var, variable_label)

finalfit_label(.var, variable_label)

Arguments

.var

Quoted variable name

variable_label

Quoted variable label

Value

Labelled variable

See also

Examples

colon_s$sex.factor %>% ff_label("Sex") %>% str()
#> Factor w/ 2 levels "Female","Male": 2 2 1 1 2 1 2 2 2 1 ... #> - attr(*, "label")= chr "Sex"