convert: Takes a set of lat/long coordinates and converts them to the...

Description Usage Arguments Value Examples

Description

Takes a set of lat/long coordinates and converts them to the Chicago coordinate system.

Usage

1
convert(df, lat, long, epsg = 4326)

Arguments

df

A data frame with lat/long coordinates and at least one other field.

lat

Latitude

long

Longitude

epsg

the epsg of the lat/long coordinates. Default is 4326 (WSG-84)

Value

The original data frame with two additional columns: X_coordinate and Y_coordinate.

Examples

1
2
3
data(hom_14)
hom_14 <- dplyr::select(hom_14, -X.Coordinate, -Y.Coordinate)
hom_14 <- convert(hom_14, lat = "Latitude", long = "Longitude")

dmwelgus/MapChi documentation built on May 15, 2019, 9:38 a.m.