- x
SpatRaster, SpatVector, numeric vector of length four (xmin, xmax, ymin, ymax), or missing (in which case the output is the global extent in lon-lat coordinates)
- cells
positive integer (cell) numbers to subset the extent to area covered by these cells
- value
SpatExtent, or numeric vector of length four (xmin, xmax, ymin, ymax)
- ...
if x
is a single numeric value, additional numeric values for xmax, ymin, and ymax
- xy
logical. Set this to TRUE
to indicate that coordinates are in (xmin, ymin, xmax, ymax) order, instead of in the terra standard order of (xmin, xmax, ymin, ymax)