Translate terms based on fuzzy matching.
translateTerms(
terms,
index = NULL,
source = NULL,
strict = FALSE,
fuzzy_terms = NULL,
fuzzy_dist = 5,
limit = NULL,
inline = TRUE,
verbose = TRUE
)
[character(.)
] terms to be translated.
[character(1)
] name of a table that contains
translations.
[named list(1)
] the table or geometry ID from which
the terms have been taken. List must be named with either tabID
or
geoID
to denote where the ID comes from.
[logical(1)
] shall the translation be limited to
fuzzy_terms
, or shall also those terms be available that have been
defined as 'original'
in a translation table.
[vector(.)
] additional target terms with which a
fuzzy match should be carried out.
[integerish(1)
] the maximum edit-distance for
which terms of fuzzy-matching should be suggested as match.
[character(.)
] a set of terms to which the translation
should be limited.
[logical(1)
] whether or not to edit translations
inline in R (only possible in linux), or in the 'translating.csv' in your
database root directory.
[logical(1)
] be verbose about what is happening
(default TRUE
).
A table of translated terms
.
This is basically a sophisticated matching algorithm, that adds new entries to the respective index.