View source: R/repgrid-basicops.r
swapConstructs | R Documentation |
Swap the position of two constructs in a grid.
swapConstructs(x, pos1 = 1, pos2 = 1)
x |
|
pos1 |
Row number of first construct to be swapped (default=1). |
pos2 |
Row number of second construct to be swapped (default=1). |
repgrid
object
## Not run:
x <- randomGrid()
swapConstructs(x, 1, 3) # swap constructs 1 and 3
swapConstructs(x, 1:2, 3:4) # swap construct 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.