Description Usage Arguments Details Value Author(s) Examples
Swap the position of two elements
1 | swapElements(x, pos1=1, pos2=1)
|
x |
|
pos1 |
Column number of first element to be swapped (default=1). |
pos2 |
Column number of second element to be swapped (default=1). |
Swap the position of two elements in a grid.
repgrid
object.
Mark Heckmann
1 2 3 4 5 6 | ## Not run:
x <- randomGrid()
swapElements(x, 1, 3) # swap elements 1 and 3
swapElements(x, 1:2, 3:4) # swap element 1 with 3 and 2 with 4
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.