Description Usage Arguments Details Value Author(s) References Examples
Map between two sets of terms; used to harmonize data.
1 2 3 4 5 6 7 8 9 10 |
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("comhis")
1 | ## Not run: x2 <- map(x, synonymes)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.