resolve_feature_names {cartographer} | R Documentation |
Canonicalise feature names accounting for aliases and character case
Description
Names are resolved by checking for the first match using:
case sensitive match, then
case sensitive match using aliases, then
case insensitive match, then
case insensitive match using aliases.
Usage
resolve_feature_names(feature_names, feature_type, unmatched = "error")
Arguments
feature_names |
Character vector of feature names in the data. |
feature_type |
Type of map feature. See |
unmatched |
Controls behaviour when |
Value
Character vector of the canonicalised names.
Examples
resolve_feature_names(c("LEE", "ansoN"), feature_type = "sf.nc")
resolve_feature_names(c("LEE", "ansoNe"), feature_type = "sf.nc", unmatched = "pass")
[Package cartographer version 0.2.1 Index]