if (grassStarted()) {
# Setup
library(terra)
# Plant specimens (points), elevation (raster)
madDypsis <- fastData("madDypsis")
madElev <- fastData("madElev")
# Convert a SpatRaster to a GRaster, and sf to a GVector
dypsis <- fast(madDypsis)
elev <- fast(madElev)
### Get coordinates:
dypsisPoints <- crds(dypsis)
elevPoints <- crds(elev)
head(dypsisPoints)
head(elevPoints)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.