permuteGrid: Permute rows, columns or whole grid matrix.

Description Usage Arguments Value Author(s) Examples

Description

Generate one or many permutations of the grid by shuffling the rows, the columns or the whole grid matrix.

Usage

1
permuteGrid(x, along=1, n=1)

Arguments

x

repgrid object.

along

What to permute. along=1 (default) will permute the rows along=2 the columns, along=3 the whole matrix.

n

The number of permutations to produce.

Value

A repgrid object if n=1 or a list of repgrid objects if n>1.

Author(s)

Mark Heckmann

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 

# permute grid
permuteGrid(bell2010)
permuteGrid(bell2010)
permuteGrid(bell2010)

# generate a list of permuted grids
permuteGrid(bell2010, n=5)


## End(Not run)

OpenRepGrid documentation built on May 2, 2019, 4:54 p.m.