View source: R/categorical_boundary.R
categorical_boundary | R Documentation |
This function is deprecated. Please use define_boundary
Creates boundary element cells where patches of two categories meet.
categorical_boundary(x)
x |
A SpatRaster object. |
A SpatRaster object with cell values 1 for boundary elements and 0 for other cells
Amy Luo
data(grassland)
grassland <- terra::rast(grassland_matrix, crs = grassland_crs)
terra::ext(grassland) <- grassland_ext
grassland_boundaries <- categorical_boundary(grassland)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.