R/helpers.R
dot-rast.Rd
Extract values and metadata from terra::SpatRaster
.rast(x)
SpatRaster(1) the SpatRaster object.
the function that extracts values and metadata.
This function simply extracts the values from x and appends the raster metadata as attributes.
x