sp2raster.RdBackward-compatible wrapper for older function name.
sp2raster(
sv,
xmn = 142.45,
ymn = -27.5,
resolution = 0.01,
xmx = NA,
ymx = NA,
r = NULL
)SpatVector object, e.g. as output by poly2sv()
Minimum x value to use for the grid. Defaults to 142.45
Minimum y value for the grid. Defaults to -27.5
Grid resolution in degrees. Defaults to 0.01
Maximum x value for the grid. Defaults to the maximum x extent of `sv`.
Maximum y value for the grid. Defaults to the maximum y extent of `sv`.
A raster object with the correct grid set up (optional). Default=NULL
A `terra` raster.