inv.range {phyloraster}R Documentation

Calculate the inverse of range size

Description

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.

Usage

inv.range(x, filename = "", overwrite = FALSE, ...)

Arguments

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.

Value

SpatRaster and numeric

Author(s)

Neander Marcel Heming and Gabriela Alves-Ferreira

Examples


# calculating the inverse of range size
x <- terra::rast(system.file("extdata", "rast.presab.tif",
package="phyloraster"))
inv.range(x[[5]])


[Package phyloraster version 2.1.0 Index]