Restrict an alias mapping list to things that look like name assignments

restrictToNameAssignments(alias, restrictToAllCaps = FALSE)

Arguments

alias

mapping list

restrictToAllCaps

logical, if true only use all-capitalized keys

Value

string to string mapping

Examples

alias <- list(region= 'east', str= "'seven'") aliasR <- restrictToNameAssignments(alias) print(aliasR)
#> $region #> [1] "east" #>