lets.summarizer: Summarize variable(s) values in a presence-absence matrix within species' ranges
Description
Based on a Presence-Absence matrix with added variables
(see lets.addvar), this function summarizes the values of
such variable(s) per species (across the species' occupied cells. i.e.
within their ranges).
Usage
lets.summarizer(x, pos, xy = TRUE, fun = mean, ...)
Arguments
x
Presence-absence matrix with variables added.
pos
Column position of the variables of interest.
xy
Logical, if TRUE the input matrix contains geographic
coordinates in the first two columns.
fun
Function to be used to summarize the variable per species.
Default is mean.
...
Other parameters passed to the function defined in fun.
Author
Bruno Vilela & Fabricio Villalobos
References
Villalobos, F. and Arita, H.T. 2010. The diversity field of
New World leaf-nosed bats (Phyllostomidae).
Global Ecology and Biogeography. 19, 200-211.