initMC: Initialise the permutation object

Description Usage Arguments Value Author(s) See Also Examples

View source: R/initMC.r

Description

This function initialises the permutation object. It must be called before nextPerm can be called

Usage

1
initMC(x)

Arguments

x

a vector of integers, reals, logicals or characters

Value

a object of class mc which is a list containing elements

Author(s)

James M. Curran

See Also

nextPerm

Examples

1
2
3
4
5
6
7
8
9
x = c(1,1,2,2)
m1 = initMC(x)
m1

## a non-integer example

x = rep(letters[1:4],c(2,1,2,2))
m2 = initMC(x)
m2

multicool documentation built on May 30, 2017, 5:51 a.m.

Search within the multicool package
Search all R packages, documentation and source code