Description Usage Arguments Value Examples
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.
1 |
data |
a dataframe containing at least two vectors with geocoordinates labeled longitute and latitude |
A dataframe is printed to the console containing new cartesian (x, y) values in kilometers along with the original latitude and longitude values.
1 | geocoord_km(data = dataframe)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.