range_size | R Documentation |
This function calculate range size in square meters (by default) for all cells that are not NA. The size of the cells is constant in degrees but not in square meters, which was considered in the method applied to calculate the area.
range_size(x, cellSz, unit = "m", ...)
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. |
cellSz |
SpatRaster. A SpatRaster containing cellSize values.
See |
unit |
character. One of "m", "km", or "ha" |
... |
additional arguments to be passed passed down from a calling function. |
vector
Gabriela Alves Ferreira and Neander Marcel Heming
x <- terra::rast(system.file("extdata", "rast.presab.tif",
package="phyloraster"))
range_size(x[[1:2]], cellSz <- terra::cellSize(x))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.