This is a wrapper around terra::ext, sf::st_bbox, and raster::extent.
# S4 method for list
extent(x, ...)# S4 method for sf
extent(x, ...)
# S4 method for SpatRaster
extent(x, ...)
# S4 method for SpatVector
extent(x, ...)
# S4 method for SpatExtent
extent(x, ...)
# S4 method for Spatial
extent(x, ...)
# S4 method for Raster
extent(x, ...)
Returns a list of length 4 with elements xmin, xmax, ymin, and ymax,
in that order.
The spatial object from which to extract the extent.
Not used.