R/permAll.R

Defines functions permAll

## Makes all permuations of a vector and returns a matrix // Based on the 'multicool' package
## of Prof. James M. Curran
#' @importFrom multicool initMC allPerm
permAll <- function(x) {
  if (length(x) == 1) 
    return(x)
  xx = multicool::initMC(x)
  multicool::allPerm(xx)
}

Try the DNAtools package in your browser

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

DNAtools documentation built on March 18, 2022, 7:01 p.m.