raster_dummy | R Documentation |
Convert raster file containing n classes in n files containing one class type presence (1) and absence (0) Output a multiple raster (SpatRaster) from the terra package
raster_dummy(r)
r |
raster with categorical data |
SpatRaster with n layers one for each factor level
# dumr = raster_dummy(r)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.