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