project_df | R Documentation |
Project a data frame with geographic coordinates to a different coordinate reference system (CRS) while retaining the original coordinates.
project_df(df, from = 4326, to)
df |
A data frame with geographic coordinates (latitude and longitude, in decimal degrees) and a WGS84 CRS (4326). |
from |
The original geographic CRS. |
to |
The new projected CRS. |
The original data frame and new columns for X and Y in a second CRS.
project_df(df, from = 4326, to = 3310)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.