rast.sr | R Documentation |
Calculate the species richness for raster data.
rast.sr(x, filename = "", ...)
x |
SpatRaster. A SpatRaster containing presence-absence data (0 or 1) for a set of species. |
filename |
character. Output filename. |
... |
additional arguments to be passed passed down from a calling function. |
SpatRaster
Gabriela Alves Ferreira and Neander Marcel Heming
x <- terra::rast(system.file("extdata", "rast.presab.tif",
package="phyloraster"))
rse <- phyloraster::rast.sr(x)
terra::plot(rse)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.