Make a crosswalk list for use with label_with_xwalk()
or rename_with_xwalk()
Source: R/format_data.R
make_xwalk_list.Rd
Make a crosswalk list for use with label_with_xwalk()
or
rename_with_xwalk()
Usage
make_xwalk_list(xwalk, cols = c("label", "name"), call = caller_env())
Arguments
- xwalk
A data frame with two columns or a named list.
- cols
Column names to use for crosswalk.
- call
The execution environment of a currently running function, e.g.
caller_env()
. The function will be mentioned in error messages as the source of the error. See thecall
argument ofabort()
for more information.