geocoord_km: Convert Lat/Lon to Kilometers

Description Usage Arguments Value Examples

Description

geocoord_km converts geocoordinates of latitude and longitude to kilometers. Projections of lat and lon are turned into (x,y) points centered around their mean in kilometers. Code from http://wiki.cbr.washington.edu/qerm/index.php/R/Converting_Geographic_Coordinates_to_Kilometers was used in making the function. See link for more information on calculation.

Usage

1

Arguments

data

a dataframe containing at least two vectors with geocoordinates labeled longitute and latitude

Value

A dataframe is printed to the console containing new cartesian (x, y) values in kilometers along with the original latitude and longitude values.

Examples

1
geocoord_km(data = dataframe)

jbrabazon13/quakr documentation built on May 21, 2019, 1:19 p.m.