stack_dummy | R Documentation |
convert categorical raster layers to dummy(binary) raster layers
stack_dummy(l, threshold = 10)
l |
character list of raster filenames with path |
threshold |
numeric maximum number of unique values to be a factor raster |
SpatRaster stack of binary layers and name of factor raster layers
# rd = stack_dummy(l = l, threshold = 8)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.