places_table: Import the latest geonames dump page

Description Usage Format Details Value Examples

View source: R/places_table.R

Description

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

Usage

1

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

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.

Value

a data frame containing the geonames daily dump page contents.

Examples

1
## Not run: places_table()

poldham/places documentation built on Aug. 19, 2019, 8:33 p.m.