Resample a raster to a new grid
# S4 method for RasterLayer,RasterLayer
exact_resample(x, y, fun)# S4 method for SpatRaster,SpatRaster
exact_resample(x, y, fun)
a RasterLayer
or SpatRaster
to be resampled
a raster of the same class as x
with a grid definition to
which x
should be resampled
a named summary operation to be used for the resampling
a resampled version of x
, returned as a RasterLayer
or
SpatRaster
, depending on the values of x
and y