Read in and process geonames data dump files into a data.frame.
places_download(country = NULL, code = NULL)
country | A country name (use |
---|---|
code | A two letter iso country code (use |
a data.frame
Column names are converted to lower, spaces replaced with underscores and brackets removed. download_date added to table with the users system date. places_import
cannot handle three letter country codes will throw an error.
# NOT RUN { AI <- places_download(code = "AI") %>% places_import() kenya <- places_download(country = "kenya") %>% places_import() all <- places_download(country = "allcountries") %>% places_import() # }