xapp.RdApply a function to the values of each cell of two (multilayer) SpatRasters.
# S4 method for class 'SpatRaster,SpatRaster'
xapp(x, y, fun, ..., filename="", overwrite=FALSE, wopt=list())SpatRaster
SpatRaster with the same geometry as x
a function that operates on two vectors
additional arguments for fun. These are typically numerical constants. They should *never* be another SpatRaster
character. Output filename
logical. If TRUE, filename is overwritten
list with named options for writing files as in writeRaster
SpatRaster
app, lapp, tapp, Math-methods, roll