get_location: Get location coordinates.

View source: R/get_location.R

get_locationR Documentation

Get location coordinates.

Description

get_location returns the latitude and longitude of each input place name.

Usage

get_location(x)

Arguments

x

a vector string with place names ("city, country") whose coordinates will be downloaded from OpenStreetMap.

Value

Matrix with the latitude and longitude coordinates of each input place.

Author(s)

Modesto Escobar modesto@usal.es, Department of Sociology and Communication, University of Salamanca, Carlos Prieto cprietos@usal.es, and David Barrios metal@usal.es, Bioinformatics Service, University of Salamanca.

Examples

get_location(c("Salamanca, Spain","New York, United States"))

evolMap documentation built on March 31, 2023, 9:30 p.m.