check_and_rename_vars | R Documentation |
check and rename variables
check_and_rename_vars(
x,
target.var,
alternative.vars,
multiplier,
required = FALSE,
fill = NULL
)
x |
data frame or equivalent R object. |
target.var |
character vector of length one, with the name of the target variable. |
alternative.vars |
character vector of any length, with the names of the of alternative variables that could replace the target. |
multiplier |
numeric vector with the multipliers to apply to the alternative variables. |
required |
logical Indicating whether an error should be triggered if no variable is found. |
fill |
If |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.