map | R Documentation |
Map between two sets of terms; used to harmonize data.
map( x, synonymes, remove.unknown = FALSE, mode = "exact.match", verbose = FALSE, from = "synonyme", to = "name", keep.names = FALSE )
x |
A character vector |
synonymes |
synonyme table with the fields 'synonyme' and 'name' |
remove.unknown |
Logical. Remove terms that do not have synonymes. |
mode |
'exact.match' replaces the terms based on the synonyme list if an exact match is found; 'match' replaces the parts that match synonymes; 'recursive' replaces all (sub)strings recursively in the same order as in the synonyme table |
verbose |
verbose |
from |
field that will be replaced |
to |
field that contains the final names |
keep.names |
Keep the original names in the returned vector (may slow down analysis in large data sets) |
Map the input vector to harmonized versions based on the synonyme table.
Vector of harmonized terms
Leo Lahti leo.lahti@iki.fi
See citation("bibliographica")
## Not run: x2 <- map(x, synonymes)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.