move: Move construct or element in grid to the left, right, up or...

Description Usage Arguments Value Author(s) Examples

Description

Move element in grid to the right.

Usage

1
2
3
4
5
6
7
left(x, pos = 0)

right(x, pos = 0)

up(x, pos = 0)

down(x, pos = 0)

Arguments

x

repgrid object.

pos

Row (column) number of construct (element) to be moved leftwards, rightwards, upwards or downwards. The default is 0. For indexes outside the range of the grid no moving is done.

Value

repgrid object.

repgrid object

repgrid object

repgrid object

Author(s)

Mark Heckmann

Examples

1
2
3
4
5
6
7
8
## 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)

markheckmann/OpenRepGrid documentation built on April 30, 2021, 2:33 a.m.