R/print.simmat.R

print.simmat <- function(x, ...) {
    isSeq <- ifelse(attr(x, "isSeq"), "sequential", "non-sequential")
    if (attr(x, "binary"))
        kind <- "binary"
    else
        kind <- ifelse(attr(x, "mode") == "integer", "count", "abundance")
    d <- dim(x)
    cat("An object of class", dQuote(class(x)[1L]), "\n")
    cat(sQuote(attr(x, "method")), " method (", 
        kind, ", ", isSeq, ")\n", sep="")
    cat(d[1L], "x", d[2L], "matrix\n")
    cat("Number of permuted matrices =", d[3L], "\n")
    if (attr(x, "isSeq")) {
        cat("Start = ", attr(x, "start"), ", End = ", attr(x, "end"), 
            ", Thin = ", attr(x, "thin"), "\n\n", sep="") 
        } else cat("\n")
    invisible(x)
}

Try the vegan package in your browser

Any scripts or data that you put into this service are public.

vegan documentation built on May 2, 2019, 5:51 p.m.