dictionary: dictionary: Dictionary of Vietnamese admin1 Names

Description Usage Arguments Details Examples

View source: R/dictionary.R

Description

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.

Usage

1
dictionary(countryname, level, add_dict = NULL, force = FALSE)

Arguments

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 translate (english without accent) and one or multiple columns containing the tag 'var' in the column names (all this columns will be used to create the possible variable)

force

boolean to force the gadm downlaoding if trouble

Details

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/

Examples

1
2
dict_vn <- dictionary("Vietnam", 1)
head(dict_vn)

choisy/dictionary documentation built on Aug. 21, 2019, 3:52 p.m.