swapConstructs: Swap the position of two constructs in a grid.

Description Usage Arguments Value Author(s) Examples

View source: R/repgrid-basicops.r

Description

Swap the position of two constructs in a grid.

Usage

1
swapConstructs(x, pos1 = 1, pos2 = 1)

Arguments

x

repgrid object.

pos1

Row number of first construct to be swapped (default=1).

pos2

Row number of second construct to be swapped (default=1).

Value

repgrid object

Author(s)

Mark Heckmann

Examples

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

OpenRepGrid documentation built on May 29, 2017, 10:40 p.m.

Search within the OpenRepGrid package
Search all R packages, documentation and source code