convert_lnglat: Function to convert Eastings / Northings to Lat / Long

View source: R/latlng_eastnorth.R

convert_lnglatR Documentation

Function to convert Eastings / Northings to Lat / Long

Description

convert_lnglat converts columns containing Eastings and Northings in a dataframe to columns containing Longitude and Latitude

Usage

convert_lnglat(df, easting, northing)

Arguments

df

A dataframe with at least 2 columns

easting

Column containing Easting

northing

Column containing Northing

Details

This function takes a dataframe with columns containing Eastings and Northings and adds columns containing Longitudes and Latitudes.

Value

Output is a dataframe identical to the input dataframe with two additional columns, 'Long' and 'Lat'.

Examples


## Not run: 
convert_lnglat(df, "eastings", "northings")

## End(Not run)


l-hodge/ukgeog documentation built on Sept. 5, 2022, 1:57 p.m.