View source: R/lets_classvar.R
lets.classvar | R Documentation |
Based on a species Presence-Absence matrix including
variables of interest (see lets.addvar
), the
function divides a continuous variable into classes and counts
the frequency of each class within each species' range.
lets.classvar(x, groups = "default", pos, xy)
x |
Presence-absence |
groups |
The number of classes into which the variable will be divided.
Default calculates the number of classes as the
default for a histogram ( |
pos |
Column number containing the variable of interest. |
xy |
Logical, if |
A matrix
with species in the rows and the variable's
classes in the columns.
Bruno Vilela
Morales-Castilla et al. 2013. Range size patterns of New World oscine passerines (Aves): insights from differences among migratory and sedentary clades. Journal of Biogeography, 40, 2261-2273.
## Not run:
data(PAM)
data(temp)
pamvar <- lets.addvar(PAM, temp)
resu <- lets.classvar(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.