Learn R Programming

teal.transform (version 0.6.0)

get_relabel_call: Create relabel call from named character

Description

[Stable]

Function creates relabel call from named character.

Usage

get_relabel_call(labels)

Value

call object with relabel step.

Arguments

labels

(named character) where name is name is function argument name and value is a function argument value.

Examples

Run this code
get_relabel_call(
  labels = c(
    x = as.name("ANL"),
    AGE = "Age",
    AVAL = "Continuous variable"
  )
)

get_relabel_call(
  labels = c(
    AGE = "Age",
    AVAL = "Continuous variable"
  )
)

Run the code above in your browser using DataLab