Standard arithmetic operators for computations with SpatRaster objects and numeric values. The following operators and methods are available for SpatRaster:
Arith: +, -, *, /, ^, %%, %/%
Compare: ==, !=, >, <, <=, >=
Summary
: "max", "min", "range", "prod", "sum", "any", "all"
Math: "abs", "sign", "sqrt", "ceiling", "floor", "trunc", "cummax", "cummin", "cumprod", "cumsum", "log", "log10", "log2", "log1p", "acos", "acosh", "asin", "asinh", "atan", "atanh", "exp", "expm1", "cos", "cosh", "sin", "sinh", "tan", "tanh"
Math2: "round", "signif"
If multiple SpatRaster objects are used, these must have the same extent and resolution. Operators are applied on a cell by cell basis.
For SpatExtent the following methods have been implemented: "round", "floor", "ceil", "=="