resample | R Documentation |
RasterArray
'-class objectThe method is inherited from the 'SpatRaster
' class.
## S4 method for signature 'RasterArray,ANY'
resample(x, y, ...)
x |
a |
y |
The y argument of the |
... |
arguments passed to the |
A resampled RasterArray
-class object.
ex <- rastex()
if(requireNamespace("terra", quietly=TRUE)){
template <- terra::rast(res=5)
resampled <- resample(ex, template)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.