WFS_util_replace_names | R Documentation |
This function uses two character vectors to replace names in a named list. The first character vector contains the names (case insensitive) that will be replaced and the second character vector contains their corresponding replacements. It is possible that all, none or some names will be replaced.
WFS_util_replace_names(mylist, onames, nnames)
mylist |
A named list |
onames |
Character vector with names to be replaced (case insensitive) |
nnames |
Character vector with corresponding replacements |
In this package the function is used to translate argument names for the case that these names are different in the WFS versions.
A copy of mylist
with names in onames
replaced by the corresponding ones in nnames
WFS_util_unify_names()
, WFS_util_v12_names()
## Not run: WFS_util_replace_names(mylist, c('maxFeatures', 'typeName'), c('count', 'typeNames') ) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.