R/let.R
restrictToNameAssignments.Rd
Restrict an alias mapping list to things that look like name assignments
restrictToNameAssignments(alias, restrictToAllCaps = FALSE)
alias | mapping list |
---|---|
restrictToAllCaps | logical, if true only use all-capitalized keys |
string to string mapping
alias <- list(region= 'east', str= "'seven'") aliasR <- restrictToNameAssignments(alias) print(aliasR)#> $region #> [1] "east" #>