View source: R/lets_summaryze.R
lets.summarizer | R Documentation |
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).
lets.summarizer(x, pos, xy = TRUE, fun = mean, ...)
x |
Presence-absence matrix with variables added. |
pos |
Column position of the variables of interest. |
xy |
Logical, if |
fun |
Function to be used to summarize the variable per species.
Default is |
... |
Other parameters passed to the function defined in |
Bruno Vilela & Fabricio Villalobos
Villalobos, F. and Arita, H.T. 2010. The diversity field of New World leaf-nosed bats (Phyllostomidae). Global Ecology and Biogeography. 19, 200-211.
lets.addvar
lets.addpoly
lets.field
## Not run:
data(PAM)
data(temp)
temp <- terra::unwrap(temp)
pamvar <- lets.addvar(PAM, temp)
resu <- lets.summarizer(x = pamvar, pos = ncol(pamvar),
xy = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.