powered by
This function is deprecated. Please use define_boundary
define_boundary
Creates boundary element cells where patches of two categories meet.
categorical_boundary(x)
A SpatRaster object with cell values 1 for boundary elements and 0 for other cells
A SpatRaster object.
Amy Luo
# \donttest{ data(grassland) grassland <- terra::rast(grassland_matrix, crs = grassland_crs) terra::ext(grassland) <- grassland_ext grassland_boundaries <- categorical_boundary(grassland) # }
Run the code above in your browser using DataLab