File: print.nullmodel.R

package info (click to toggle)
r-cran-vegan 2.5-7%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 5,564 kB
  • sloc: ansic: 2,275; fortran: 1,088; sh: 42; makefile: 2
file content (14 lines) | stat: -rw-r--r-- 533 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
print.nullmodel <- function(x, ...) {
    isSeq <- ifelse(x$commsim$isSeq, "sequential", "non-sequential")
    if (x$commsim$binary)
        kind <- "binary"
    else
        kind <- ifelse(x$commsim$mode == "integer", "count", "abundance")
    cat("An object of class", dQuote(class(x)[1L]), "\n")
    cat(sQuote(x$commsim$method), " method (", 
        kind, ", ", isSeq, ")\n", sep="")
    cat(x$nrow, "x", x$ncol, "matrix\n")
    if (x$commsim$isSeq)
        cat("Iterations =", x$iter, "\n\n") else cat("\n")
    invisible(x)
}