left {OpenRepGrid} | R Documentation |
Move construct or element in grid to the left, right, up or down.
Description
Move element in grid to the right.
Usage
left(x, pos = 0)
right(x, pos = 0)
up(x, pos = 0)
down(x, pos = 0)
Arguments
x |
|
pos |
Row (column) number of construct (element) to be moved
leftwards, rightwards, upwards or downwards.
The default is |
Value
repgrid
object.
repgrid
object
repgrid
object
repgrid
object
Examples
## Not run:
x <- randomGrid()
left(x, 2) # 2nd element to the left
right(x, 1) # 1st element to the right
up(x, 2) # 2nd construct upwards
down(x, 1) # 1st construct downwards
## End(Not run)
[Package OpenRepGrid version 0.1.18 Index]