View source: R/repgrid-basicops.r
swapPoles | R Documentation |
Constructs are bipolar. They can be reversed without a change in meaning. The function swaps the constructs poles and re-adjusts ratings accordingly, i.e. it reversed selected constructs.
swapPoles(x, pos)
reverse(x, pos = 1L:nrow(x))
x |
A |
pos |
Row indexes of constructs to reverse.. |
A repgrid
object with reversed constructs.
Please note that the scale of the rating grid has to be set in order to reverse constructs. If the scale is unknown no reversal occurs and an error is raised.
x <- boeker
reverse(x) # reverse all constructs
reverse(x, 1) # reverse construct 1
reverse(x, 1:2) # reverse constructs 1 and 2
# swapPoles will become deprecated, use reverse instead
swapPoles(x, 1) # swap construct poles of construct
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.