I am working with a data example from the GWmodel package. The dataset is called USelect.
library(GWmodel)
data(USelect)
View(USelect2004)
USelect contains election outcome data at the county level from the 2004 US election as well as several census variables. Each county has an id number but hasn't been supplied with their county or even state names. The head of the data is below.
head(USelect2004)
winner unemploy pctcoled PEROVER65 pcturban WHITE
1 Bush 4.1 11.0 17.2 0.0 97.2
2 Bush 13.3 12.0 12.6 0.0 75.5
3 Bush 9.4 12.1 12.9 14.1 90.0
4 Bush 10.5 12.0 14.0 12.3 75.3
5 Bush 13.4 12.0 14.9 0.0 93.5
6 Bush 8.8 13.3 13.4 0.0 95.2
Is there is a method to retrieve and apply such names/labels to this file? I would like to have labels so that I can do effective interactive mapping with Leaflet.
I am aware of the Geocode package but unsure if can do what I'm looking for.