Convert Coordinate Reference System (CRS) of a data.frame from one CRS to another.
convert_crs_df(
df,
crs_from = 3035,
crs_to = 4326,
lon_from = "x",
lat_from = "y",
lon_to = "lon",
lat_to = "lat"
)
data.frame to be converted.
CRS code of the original coordinate system (default: 3035).
CRS code of the target coordinate system (default: 4326).
column name of longitude values in df
(default: "x").
column name of latitude values in df
(default: "y").
column name for longitude values in the converted data frame (default: "lon").
column name for latitude values in the converted data frame (default: "lat").
data.frame with converted coordinates