Transform coordinates between Coordinate Reference Systems (CRS)

transform_coordinates(object, crs_old, crs_new = "EPSG:4326")

Arguments

object

A two-column matrix with 'x' (~longitude) and 'y' (~latitude) coordinates as columns.

crs_old

Original CRS of the coordinates.

crs_new

New CRS of the output.

Value

A data.frame with 'x' and 'y' coordinates in the new CRS.