Transform the coordinates in a dataframe
sp_transform_df(
  df,
  to_crs,
  df_crs = 4283,
  x = "long",
  y = "lat",
  remove = TRUE
)Dataframe with x and y coordinates to transform.
Anything that will be recognised by the crs argument
of sf::st_as_sf() and sf::st_transform().
Character name of column in df with x and y coordinates.
Logical. If true, original coordinate columns (x and y)
will be removed.
Dataframe with added columns X and Y representing the transformed
coordinates.