mn_boundaries_normalize() was deprecated in mongolstats 0.3.0 together
with mn_boundaries(). To match place names in any spelling, use
mongolmaps::mn_match().
Adds a name_std column to an sf boundary object by transliterating,
lowercasing, and stripping special characters from place names.
Arguments
- g
sf object from
mn_boundaries().- name_col
Column with English names (default 'shapeName').
Examples
if (FALSE) { # identical(Sys.getenv("NOT_CRAN"), "true") && curl::has_internet() && rlang::is_installed("sf")
aimags <- mn_boundaries_normalize(mn_boundaries("ADM1"))
# ->
if (rlang::is_installed("mongolmaps")) {
mongolmaps::mn_match(c("Khuvsgul", "Hovsgol"), to = "name_en")
}
}