R/print.summary.allPerms.R

Defines functions `print.summary.allPerms`

`print.summary.allPerms` <- function(x, ...) {
    dims <- dim(x)
    control <- attr(x, "control")
    observed <- attr(x, "observed")
    attributes(x) <- NULL
    dim(x) <- dims
    cat("\n")
    writeLines(strwrap("Complete enumeration of permutations\n",
        prefix = "\t"))
    print(control)
    cat("\nAll permutations:\n")
    writeLines(paste("Contains observed ordering?:", ifelse(observed, "Yes", "No"),
              "\n"))
    print(x)
    return(invisible(x))
}

Try the permute package in your browser

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

permute documentation built on March 18, 2022, 7:36 p.m.