exact_resample {exactextractr}R Documentation

Resample a raster to a new grid

Description

Resample a raster to a new grid

Usage

## S4 method for signature 'RasterLayer,RasterLayer'
exact_resample(x, y, fun)

## S4 method for signature 'SpatRaster,SpatRaster'
exact_resample(x, y, fun)

Arguments

x

a RasterLayer or SpatRaster to be resampled

y

a raster of the same class as x with a grid definition to which x should be resampled

fun

a named summary operation to be used for the resampling

Value

a resampled version of x, returned as a RasterLayer or SpatRaster, depending on the values of x and y


[Package exactextractr version 0.7.2 Index]