powered by
Returns lagged differences.
# S4 method for SpatRaster diff(x, filename="", overwrite=FALSE, wopt=list(), ...)
SpatRaster
character. Output filename. Optional
logical. If TRUE, filename is overwritten
TRUE
filename
list. Options for writing files as in writeRaster
writeRaster
additional arguments. None implemented
# NOT RUN { s <- rast(system.file("ex/logo.tif", package="terra")) d <- diff(s) # }
Run the code above in your browser using DataLab