powered by
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)
repgrid object.
repgrid
What to permute. along=1 (default) will permute the rows along=2 the columns, along=3 the whole matrix.
along=1
along=2
along=3
The number of permutations to produce.
A repgrid object if n=1 or a list of repgrid objects if n>1.
n=1
n>1
# NOT RUN { # permute grid permuteGrid(bell2010) permuteGrid(bell2010) permuteGrid(bell2010) # generate a list of permuted grids permuteGrid(bell2010, n=5) # } # NOT RUN { # }
Run the code above in your browser using DataLab