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) from which a 0-1 matrix
can be generated.
print.prab is a print method for such
objects.prabinit(file = NULL, prabmatrix = NULL, rows.are.species = TRUE,
neighborhood = "none", geodist=NULL, gtf=0.1,
distance = "kulczynski", toprab = FALSE, toprabp
= 0.05, outc = 5.2)## S3 method for class 'prab':
print(x, ...)
kykladspecreg.dat) from which the
matrix is read by read.table. The usual interpretation is
that it is a species-by-regions matrix of species presences/afile
or prabmatrix should be NA.TRUE, rows are interpreted
as species and columns are interpreted as regions. In this case,
rows and columns are interchanged by prabinit.numeric(0). If neighbodistance="geco".distance="geco",
see geco."kulczynski", "jaccard", "geco",
"qkulczynski", "logkulczynski" (this calls function
qkulczynski with log.distance=TRUE), or
"none". The diTRUE, a presence-absence matrix is
computed from the non-negative input matrix. "Absence", i.e., the
entry 0, is chosen if the original entry is 0, or the original entry
is both smaller than toprabp times toprab.toprab=TRUE. An entry smaller than
outc*mad times the median is considered as a lower outlier.prab.prab, which is a list with componentsprab-object, see
nonzero).TRUE, if there is a specified neighborhood
structure.FALSE, the corresponding species
had only zero entries and was therefore absent. Note that these species
are not included in any other component of a prab object, i.e.,
n.species is the number of TRUE-entries in nonzero.read.table, jaccard,
kulczynski, geco,
qkulczynski, nbtest# 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)Run the code above in your browser using DataLab