GeoNames: GeoNames: function to create a geonames database file from...

Description Usage Arguments Value

Description

This function will create a geonames database file which includes alternative spellings of many placenames. The function reads/munges a lot of data, so give it some time.

Usage

1
2
GeoNames(GeoNames_file, AlternateNames_file, output_file = paste0(getwd(),
  "/GeoNames_outputfile.csv"))

Arguments

GeoNames_file

download/unzip this file http://download.geonames.org/export/dump/allCountries.zip and specify its path (e.g. GeoNames_file="~/Downloads/allCountries.txt")

AlternateNames_file

download/unzip this file http://download.geonames.org/export/dump/alternateNames.zip and specify its path

output_file

Where should the output go? Defaults to the current working directory/GeoNames_outputfile.csv

Value

A message signaling completion. The actual result is not returned but rather written to a CSV file


jeroenclaes/tweetCorp documentation built on May 27, 2019, 4:50 a.m.