How to subset a SpatRaster using the terra package in R?
I have a raster with multiple categories for which I am only interested in one category (vegClass).
I have a raster with multiple categories for which I am only interested in one category (vegClass).