ropensci / rnaturalearth

An R package to hold and facilitate interaction with natural earth map data :earth_africa:
http://ropensci.github.io/rnaturalearth/
Other
214 stars 24 forks source link

Missing countries from the data set #31

Closed aveshenpillay closed 4 years ago

aveshenpillay commented 4 years ago

Would it be possible to include / update for the inclusion of the following countries in the data set? I cannot see them in the following call:

world_map <- ne_countries(returnclass = "sf")

Country ISO3 Code
Andorra AND
Antigua and Barbuda ATG
Bahrain BHR
Barbados BRB
Cabo Verde CPV
Dominica DMA
Grenada GRD
Holy See VAT
Kosovo XKX
Liechtenstein LIE
Maldives MDV
Malta MLT
Mauritius MUS
Monaco MCO
Saint Kitts and Nevis KNA
Saint Lucia LCA
Saint Vincent and the Grenadines VCT
San Marino SMR
Seychelles SYC
Singapore SGP
mps9506 commented 4 years ago

Try the following:

world_map <- ne_countries(scale = 50, returnclass = 'sf')

This should return all the countries in your list. However, the ISO3 code in the dataset for Kosovo is KOS.

aveshenpillay commented 4 years ago

Worked perfectly, thank you!