Create relabel call from named character
get_relabel_call.Rd
Arguments
- labels
(
named character
)
where name is name is function argument name and value is a function argument value.
Examples
get_relabel_call(
labels = c(
x = as.name("ANL"),
AGE = "Age",
AVAL = "Continuous variable"
)
)
#> formatters::var_relabel(x = ANL, AGE = "Age", AVAL = "Continuous variable")
get_relabel_call(
labels = c(
AGE = "Age",
AVAL = "Continuous variable"
)
)
#> formatters::var_relabel(AGE = "Age", AVAL = "Continuous variable")