Learn R Programming

OpenRepGrid (version 0.1.9)

swapPoles: Swaps the construct poles.

Description

Swaps the constructs poles and re-adjusts ratings accordingly.

Usage

swapPoles(x, pos)

Arguments

x
repgrid object.
pos
Row number of construct whose poles are swapped

Value

repgrid object.

Examples

Run this code
## Not run: 
# 
#    x <- randomGrid()
#    swapPoles(x, 1)     # swap construct poles of construct
#    swapPoles(x, 1:2)   # swap construct poles of construct 1 and 2
#    swapPoles(x)        # swap all construct poles
# ## End(Not run)

Run the code above in your browser using DataLab