View source: R/dev-functions.r
| permuteGrid | R Documentation |
Generate one or many permutations of the grid by shuffling the rows, the columns or the whole grid matrix.
permuteGrid(x, along = 1, n = 1)
x |
A |
along |
What to permute. |
n |
The number of permutations to produce. |
A repgrid object if n = 1 or a list of repgrid objects if n > 1.
## Not run:
# permute grid
permuteGrid(bell2010)
permuteGrid(bell2010)
permuteGrid(bell2010)
# generate a list of permuted grids
permuteGrid(bell2010, n = 5)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.