permuteGrid: Permute rows, columns or whole grid matrix.

Description Usage Arguments Value Author(s) Examples

View source: R/dev-functions.r

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)

markheckmann/OpenRepGrid documentation built on April 30, 2021, 2:33 a.m.