The following logical (boolean) operators are available for computations with RasterLayer objects:
&, |, and !
The following functions are available with a Raster* argument:
A Raster object with logical (
These are convenient operators/functions that are most usful for relatively small RasterLayers for which all the values can be held in memory.
If the values of the output RasterLayer cannot be held in memory, they will be saved to a temporary file. In that case it could be more
efficient to use