Returns a vector of the numbers of connected regions per species for a
presence-absence matrix.
Usage
con.regmat(regmat, neighbors, count = FALSE)
Value
Vector of numbers of connected regions per species.
Arguments
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 numeric(0).
count
logical. If TRUE, the number of the currently
processed species is printed.