Check the differences between the names (or codes) given in input and the corresponding names (or codes), as provided by ISTAT, of the selected Italian statistical unit.
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/dataallaround/geospatial. If FALSE the maps downloaded during package installation will be used.
Value
Returns a string vector with nomatched names or a boolean vector indicating whether or not the id matched.
Details
The function provides a check between id name or code in the dataset and the corresponding selected Italian statistical unit. unit starts from the largest aggregate, "ripartizione", to the smallest, "comune". Since unit can change over the years, the year of the data has to be provided.
# NOT RUN {data("popIT")
ck <- checkNamesIT(popIT$ID, unit = "provincia")
str(ck)
# }# NOT RUN {ck <- checkNamesIT(popIT$ID, unit = "provincia", return_logical = TRUE)
str(ck)
# }