dfTransform | R Documentation |
Transform CRS coordinates data frame
Transform coordinates held in a dataframe given the starting and final coordinate reference systems
dfTransform(df, x, y, CRS1 = "EPSG:4326", CRS2)
x |
Name of the column (variable) with longitude |
y |
Name of the column (variable) with latitude |
CRS1 |
CRS of the input coordinates |
CRS2 |
CRS to use for the output coordinates |
data |
frame with, minimally, longitude and latitude columns |
data frame with reprojected coordinates. Other columns of the input data frame are preserved.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.