get_region_id: Given longitude and latitude, return region id as used by...

Description Usage Arguments Value

View source: R/geoplot.r

Description

Finds nearest nabour of lon/lat for regions in the world map data in ggmap

Usage

1
get_region_id(lon, lat, country = NULL, radius = 10)

Arguments

lon

longitude

lat

lattitude

country

If country names are available, and these match regions in the world map data, give these matches preferences over nearest neigbour matches

radius

max radius in which to look

Value

A character vector with the region names as used by ggmap


maskedforreview/gtdnews documentation built on April 12, 2021, 11:53 a.m.