This is a wrapper around terra::ext, sf::st_bbox, and raster::extent.
# S4 method for class 'list'
extent(x, ...)
# S4 method for class 'sf'
extent(x, ...)
# S4 method for class 'SpatRaster'
extent(x, ...)
# S4 method for class 'SpatVector'
extent(x, ...)
# S4 method for class 'SpatExtent'
extent(x, ...)
# S4 method for class 'Spatial'
extent(x, ...)
# S4 method for class 'Raster'
extent(x, ...)Returns a list of length 4 with elements xmin, xmax, ymin, and ymax,
in that order.