Description Usage Arguments Details Examples
This package contains a dictionary for Vietnamese admin1 names, admin2 names and admin3 names, useful to ensure consistency between different data packages using vietnamese admin1, districts and/or admin3.
From Gadm and Geonames creates a UNICODE dictionary, names vector, with the translation in English without accent.
1 | dictionary(countryname, level, add_dict = NULL, force = FALSE)
|
countryname |
string character country name |
level |
numeric level of administrative boundaries (1: admin1, 2: admin2), should be either 1 or 2 |
add_dict |
which contains at least one column |
force |
boolean to force the gadm downlaoding if trouble |
You can create dictionary for different level: 1 (admin1) and 2 (admin2),
from the data of GADM and Geonames but you can also add costum value by using
the argument add_dict
. It is also possible to use only the parameter
add_dict
to generate custom dictionary.
The variables created are express in upper, lower cases, with or without
space or "_" or with capital etters at the beginning of each word and
expressed it in UNICODE.
Source : gadm: https://gadm.org
Source: geonames: http://download.geonames.org/export/dump/
1 2 | dict_vn <- dictionary("Vietnam", 1)
head(dict_vn)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.