Returns a string vector with no matched names or a boolean vector indicating whether or not the id matched.
Arguments
id
character vector with names or codes
unit
the type of world statistical unit
matchWith
the type of id to check:
"country"
if country names
"iso2"
if iso2 code
"iso3"
if iso3 code.
"iso3_eh"
if iso3_eh code
"iso3_numeric"
if iso3 numeric code
"iso3_un"
if iso3 United Nations
"iso2_wb"
if iso2 World Bank
"iso3_wb"
if iso3 World Bank
"name_formal"
if formal names
"name_wb"
if World Bank names
res
map resolution
return_logical
a logical value indicating whether nomatched id are returned
print
a logical value indicating whether print the nomatched names
use_internet
a logical value indicating wheter the coordinates are downloaded from https://github.com/mappinguniverse/geospatial. If FALSE the maps downloaded during package installation will be used.
Author
Alessio Serafini
Details
The function provides a check between id name in the dataset and the worldwide country names.
The single unit can be coded in different ways, with names, id or iso standards.