HertieDataScience / SyllabusAndLectures

Hertie School of Governance Introduction to Collaborative Social Science Data Analysis
MIT License
37 stars 60 forks source link

ggmap for Creating Geocode Observation IDs #12

Open christophergandrud opened 9 years ago

christophergandrud commented 9 years ago

geocode from ggmap can be used to create latitude/longitudes for geographic units:

places <- c('Bavaria', 'Seoul', '6 Parisier Platz, Berlin', 
            'Hertie School of Governance')

ggmap::geocode(places)

##      lon   lat
## 1 11.49789 48.79045
## 2 13.40495 52.52001
## 3 13.37854 52.51701
## 4 13.38921 52.51286

ggmap also has some useful mapping capabilities.