Creates a step that renames variables in the survey data when baked.
Usage
step_rename(
svy = survey_empty(),
...,
mapping = NULL,
use_copy = use_copy_default(),
comment = "Rename variables",
lazy = lazy_default(),
record = TRUE
)
Arguments
- svy
A Survey or RotativePanelSurvey object
- ...
Pairs in the form new_name = old_name (unquoted or character)
- mapping
A named character vector of the form
c(new_name = "old_name")
.- use_copy
Whether to operate on a copy (default: use_copy_default())
- comment
Optional description for the step
- lazy
Logical, whether to delay execution.
- record
Logical, whether to record the step.