Learn R Programming

via (version 0.2.0)

resample: Resampling a 'RasterArray'-class object

Description

The method is inherited from the 'SpatRaster' class.

Usage

# S4 method for RasterArray,ANY
resample(x, y, ...)

Value

A resampled RasterArray-class object.

Arguments

x

a RasterArray-class object.

y

The y argument of the resample function.

...

arguments passed to the resample function.

Examples

Run this code
ex <- rastex()
if(requireNamespace("terra", quietly=TRUE)){
  template <- terra::rast(res=5)
  resampled <- resample(ex, template)
}

Run the code above in your browser using DataLab