Uses sf::sf_project() internally
project_df(
df,
x = "long",
y = "lat",
new_x = "x",
new_y = "y",
crs_from = "epsg:4326",
crs_to = "epsg:8059"
)Dataframe. Needs coordinate columns
Character. Name of column with x and coords
Character. Name to give the transformed x and columns
Passed to the from and to arguments of
sf::sf_project()
Dataframe with additional, projected, x and y columns