Used to fetch the latest geonames daily dump page containing the latest updates.

places_table()

Format

name

filename with extension, character

last modified

character

size

chr

description

character

filename

character

file type

character

url

character

iso

two letters iso country code, character

other

non iso files

Value

a data frame containing the geonames daily dump page contents.

Details

The function fetches the geonames daily dump page at http://download.geonames.org/export/dump/ consisting of a table with "Name", "Last Modified", "Size" and "Description". The Name field is parsed to create a file_name and file_type column. The files are a mix of individual country files (e.g. AD.zip) and other files (e.g. allCountries.zip, admin2Codes.txt etc.). To facilitate country name matching the file name is parsed into iso2c (iso) for two letter country codes. This allows the table to be joined with other data sources.

Examples

# NOT RUN {
places_table()
# }