View source: R/spatial_manipulation.R
add_coords | R Documentation |
Adds one or more of the following: the coordinates from the current coordinate reference system; coordinates in NAD83; and coordinates in Albers Equal Area. This does not change the projection of the points.
add_coords(
points,
coord_names = c("x_coord", "y_coord"),
nad83 = FALSE,
albers = FALSE
)
points |
A points sf object. The coordinates for the points will be added for at least the current projection. |
coord_names |
Character vector. The names for the coordinate variables using the CRS of |
nad83 |
Logical. If |
albers |
Logical. If |
points
with coordinate fields added to the data frame as requested.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.