Returns a string vector with nomatched names or a boolean vector indicating whether or not the id matched.
Arguments
id
character vector with names or codes
unit
the type of European statistical unit to check
matchWith
the type of id to check:
"name"
if unit names
"code"
if unit code
"code_full"
if unit complete code
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 or code in the dataset and the corresponding selected Germany statistical unit. unit starts from the largest aggregate, "state", to the smallest, "municipality".