ropensci / rnaturalearth

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

Malta data missing #71

Closed leonardofwink closed 1 year ago

leonardofwink commented 1 year ago

Hi! Today I was trying to find the correct country in Worldle using this guide, but i couldn't find Malta's data.

Here's what I've tried:

library(dplyr) data(countries110, package = "rnaturalearth")

countries <- countries110 %>% st_as_sf()

countries %>% dplyr::select(SUBUNIT) %>% filter( SUBUNIT == "Malta" )

And here's what I found:

Simple feature collection with 0 features and 1 field Bounding box: xmin: NA ymin: NA xmax: NA ymax: NA CRS: +proj=longlat +datum=WGS84 +no_defs +ellps=WGS84 +towgs84=0,0,0 [1] SUBUNIT geometry <0 linhas> (ou row.names de comprimento 0)

PMassicotte commented 1 year ago

rnaturalearth provides an interface to https://www.naturalearthdata.com/. Can you verify that the requested data is on their website?

mps9506 commented 1 year ago

You can find Malta in the following dataset:

countries <- ne_countries(type = "tiny_countries", returnclass = "sf")