Presence-absence/abundance matrix initialization
prabinit
converts a matrix into an object
of class prab
(presence-absence). The matrix may be read from a
file or an R-object. It may be a 0-1 matrix or a matrix with
non-negative entries (usually abundances).
print.prab
is a print method for such
objects.
Documentation here is in terms of biotic elements analysis (species are to be clustered). For species delimitation with dominant markers, see Hausdorf and Hennig (2010), individuals take the role of species and loci take the role of regions.
prabinit(file = NULL, prabmatrix = NULL, rows.are.species = TRUE, neighborhood = "none", nbbetweenregions=TRUE, geodist=NULL, gtf=0.1, distance = "kulczynski", toprab = FALSE, toprabp = 0.05, outc = 5.2) ## S3 method for class 'prab' print(x, ...)
file |
string. non-negative matrix ASCII file (such as example dataset
|
prabmatrix |
matrix with non-negative entries. Either |
rows.are.species |
logical. If |
neighborhood |
A string or 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 vector |
nbbetweenregions |
logical. If |
geodist |
matrix of non-negative reals. Geographical distances
between regions. Only used if |
gtf |
tuning constant for geco-distance if |
distance |
|
toprab |
logical. If |
toprabp |
numerical between 0 and 1, see |
outc |
numerical. Tuning constant for the outlier identification
associated with |
x |
object of class |
... |
necessary for print method. |
Species that are absent in all regions are omitted.
prabinit
produces
an object of class prab
, which is a list with components
distmat |
distance matrix between species. |
prab |
abundance or presence/absence matrix (if presence/absence, the entries are logical). Rows are regions, columns are species. |
nb |
neighborhood list, see above. |
regperspec |
vector of the number of regions occupied by a species. |
specperreg |
vector of the number of species present in a region. |
n.species |
number of species (in the |
n.regions |
number of regions. |
distance |
string denoting the chosen distance measure. |
geodist |
non-negative matrix. see above. |
gtf |
numeric. see above. |
spatial |
|
nonempty.species |
logical vector. The length is the number of species
in the original file/matrix. If |
nbbetweenregions |
see above. |
Hausdorf, B. and Hennig, C. (2010) Species Delimitation Using Dominant and Codominant Multilocus Markers. Systematic Biology, 59, 491-503.
# If you want to use your own ASCII data files, use # x <- prabinit(file="path/prabmatrixfile", # neighborhood="path/neighborhoodfile") data(kykladspecreg) data(nb) prabinit(prabmatrix=kykladspecreg, neighborhood=nb)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.