ff_label: Label a variable

Description Usage Arguments Value See Also Examples

View source: R/ff_label.R

Description

Label a variable

Usage

1
2
3
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

extract_variable_label ff_relabel

Examples

1
2
3
colon_s$sex.factor %>%
  ff_label("Sex") %>%
  str()

Example output

 Factor w/ 2 levels "Female","Male": 2 2 1 1 2 1 2 2 2 1 ...
 - attr(*, "label")= chr "Sex"

finalfit documentation built on June 11, 2021, 5:17 p.m.