Skip to contents

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

Value

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

Details

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

Examples


if (FALSE) {
convert_lnglat(df, "eastings", "northings")
}