CSSEGISandData / COVID-19

Novel Coronavirus (COVID-19) Cases, provided by JHU CSSE
https://systems.jhu.edu/research/public-health/ncov/
29.12k stars 18.4k forks source link

Longitude and latitude #2260

Open msgoussi opened 4 years ago

msgoussi commented 4 years ago

Simple question..... Where can I get the coordinates of states and countries in general to use in R?

ldemaz commented 4 years ago

Try the rnaturalearth, raster::getData(), or the maps package.

msgoussi commented 4 years ago

https://developers.google.com/public-data/docs/canonical/countries_csv

msgoussi commented 4 years ago

if I have "SpatialPointsDataFrame", how can I get dataframe with 3 columns of countries with its longitude and latitude?