coordinates | R Documentation |
This will extract using terra::crds
, sf::st_coordinates
and
raster::coordinates
. Other packages can create methods, as this is
generic.
## S4 method for signature 'ANY'
coordinates(obj, ...)
obj |
An object from which to extract the coordinates (e.g., |
... |
Ignored. |
A 2 column matrix of coordinates (x and y)
library(terra)
caribou <- terra::vect(x = cbind(x = stats::runif(1e1, -50, 50),
y = stats::runif(1e1, -50, 50)))
coordinates(caribou)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.