boundaries_coords.df: Retrieve a list of boundaries' spacial mercator coordinates...

Description Usage Arguments Value Examples

Description

Retrieve a list of mercator boundaries with their spacial coordinates(lat/long and mercator) and a computed haversine distance in miles from the map center.

Usage

1

Arguments

data

List of Longitude/latitude coordinates of the boundaries. The Dataset is a data.frame containing a set of three columns (id, long, lat). 'id' is a unique representation of the boundary(ex: ZCTA, FSA). 'id' type is character.

map_center

Spacial coordinates of a map center. The haversine distance in miles is computed if map_center is defined.

Value

list of spacial coordinates(lat/long and mercator) and a distance as data.frame

Examples

1
2
3
data = data.frame(long = c(-94.823686, -94), lat = c(39.121296, 39) )
map_center = data.frame(long = c(-94.823686), lat = c(39.121296) )
boundaries_coords<-boundaries_coords.df(data, map_center)

mohtad/mapR documentation built on May 23, 2019, 6:01 a.m.