Description Usage Arguments Details Value Examples
Create a new Raster* object that has the same values as x, except for the cells that are NA (or other maskvalue) in a 'mask'. These cells become NA (or other updatevalue). The mask can be either another Raster* object of the same extent and resolution, a sf object, or a Spatial* object (e.g. SpatialPolygons) in which case all cells that are not covered by the sf/Spatial object are set to updatevalue. You can use inverse=TRUE to set the cells that are not NA (or other maskvalue) in the mask, or not covered by the Spatial* object, to NA (or other updatvalue).
1 |
x |
Raster* object |
mask |
Raster* object, sf object, or a Spatial* object |
... |
additional arguments as in |
See mask
for more details.
Raster* object
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.