match_na_raster | R Documentation |
Options to identify which values in a set of conditions of interest
(g_matrix
) are outside the range of a set of conditions of
reference (m_matrix
).
match_na_raster(layers)
layers |
a |
A SpatRaster
object with NA cells matching in all layers.
# data
layers <- terra::rast(system.file("extdata", "reference_layers.tif",
package = "mop"))
# add NA in some places
layers[20:24, 10:16][, 3] <- NA
terra::plot(layers)
# match NAs
matched <- match_na_raster(layers)
terra::plot(matched)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.