Dictionary-based helper for aligning your data to variables used in a script
Source:R/dict_rename_helper.R
dict_rename_helper.RdDictionary-based helper for aligning your data to variables used in a script
Arguments
- dictionary
A dataframe of the dictionary which you would like to use.
- varnames
The name of
dictionarycolumn that contains variable names.- varnames_type
The name of
dictionarycolumn that contains the variable type. This variable needs to be the same number of rows as asvarnames.- rmd
Path to the Rmarkdown file which you would like to compare to.
- copy_to_clipboard
if
TRUE(default), the rename template will be copied to the user's clipboard withclipr::write_clip(). IfFALSE, the rename template will be printed to the user's console.