con.regmat | R Documentation |
Returns a vector of the numbers of connected regions per species for a presence-absence matrix.
con.regmat(regmat, neighbors, count = FALSE)
regmat |
0-1-matrix. Columns are species, rows are regions. |
neighbors |
A list with a component for every region. The
components are vectors of integers indicating
neighboring regions. A region without neighbors (e.g., an island)
should be assigned a list |
count |
logical. If |
Uses con.comp
.
Vector of numbers of connected regions per species.
Designed for use in prabtest
.
Christian Hennig christian.hennig@unibo.it https://www.unibo.it/sitoweb/christian.hennig/en
con.comp
, prabtest
data(nb)
set.seed(888)
cp <- cluspop.nb(nb, p.nb=0.1, n.species=10, clus.specs=9,
reg.group=1:17,vector.species=c(10))
con.regmat(cp,nb)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.