Learn R Programming

evolMap (version 1.2.33)

get_location: Get location coordinates.

Description

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

Usage

get_location(x)

Value

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

Arguments

x

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

Author

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

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

Run the code above in your browser using DataLab