Learn R Programming

OpenRepGrid (version 0.1.12)

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
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab