inv.range | R Documentation |
Get range size in square kilometers for all cells that are not NA, the inverse of range size and the inverse of range size multiplied by branch length for multiple species using a raster of presence-absence.
inv.range(x, filename = "", overwrite = FALSE, ...)
x |
SpatRaster. A SpatRaster containing presence-absence data (0 or 1) for a set of species. The layers (species) will be sorted according to the tree order. See the phylo.pres function. |
filename |
character. Output filename |
overwrite |
logical. If TRUE, filename is overwritten |
... |
additional arguments to be passed passed down from a calling function. |
SpatRaster and numeric
Neander Marcel Heming and Gabriela Alves-Ferreira
# calculating the inverse of range size
x <- terra::rast(system.file("extdata", "rast.presab.tif",
package="phyloraster"))
inv.range(x[[5]])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.