View source: R/latlng_eastnorth.R
convert_lnglat | R Documentation |
convert_lnglat
converts columns containing Eastings and Northings in a dataframe to columns containing Longitude and Latitude
convert_lnglat(df, easting, northing)
df |
A dataframe with at least 2 columns |
easting |
Column containing Easting |
northing |
Column containing Northing |
This function takes a dataframe with columns containing Eastings and Northings and adds columns containing Longitudes and Latitudes.
Output is a dataframe identical to the input dataframe with two additional columns, 'Long' and 'Lat'.
## Not run: convert_lnglat(df, "eastings", "northings") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.