View source: R/invertVarOrder.R
invertVarOrder | R Documentation |
If working with a matrix that shows which item each participant completed 1st, 2nd, etc, it will often be more useful to invert this to show in which order the participant completed item #1, #2, etc.
invertVarOrder(pByOrder)
invertVarOrder(pByOrder, vorder = pscores)
pByOrder |
dataframe containing participant ID as column 1, and then columns describing which item was rated first, second, etc |
vOrder |
specify the order you would like the variables to be ordered (this is necessarily mainly if the cells of the pByOrder matrix are variable names rather than variable NUMBERS) |
A participant-by-item matrix detailing when participant rated each item
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.