geolocate {sfhelper}R Documentation

Geolocate historical toponyms

Description

This function uses the API for the World Historical Gazeteer to geolocate place names. It takes the place name and region as inputs and returns a data frame with results, primarily the longitude and latitude.

Usage

geolocate(df, place = "place", iso = "iso")

Arguments

df

A data frame with two columns, places names and two-letter ISO codes for regions

place

A column with toponyms in the data frame

iso

A column of ISO codes for regions

Value

A data frame of the geospatial data

Examples

# Search for Paris and Edo (now Tokyo)
example.df <- data.frame("place" = c("Paris","Edo"), "iso" = c("FR","JP"))
geolocate(example.df)

[Package sfhelper version 0.2.2.0 Index]