read.cep
reads a file formatted by relaxed strict CEP format
used by Canoco
software, among others.read.cep(file, maxdata=10000, positive=TRUE, trace=FALSE, force=FALSE)
make.names
after stripping the blanks.DECORANA
and
TWINSPAN
. Later, Cajo ter Braak wrote Canoco
based on DECORANA
, where he adopted the format, but relaxed it
somewhat (that's why I call it a `relaxed strict' format). Further, he
introduced a more ordinary `free' format, and allowed the use of
classical Fortran style `open' format with fixed field widths. This
function should be able to deal with all these Canoco
formats,
whereas it cannot read many of the traditional CEP alternatives.All variants of CEP formats have:
FREE
) and the number of items per record (number of species
and sites forFREE
format).(10A8)
:
Ten names per line, eight columns for each. With option positive = TRUE
the function removes all lines and
columns with zero or negative marginal sums. In community data
with only positive entries, this removes empty sites and species.
If data entries can be negative, this ruins data, and such data sets
should be read in with option positive = FALSE
.
## Provided that you have the file `dune.spe'
theclassic <- read.cep("dune.spe", force=T)
Run the code above in your browser using DataLab