ch.valuesAddReversedItemOrder | R Documentation |
This function adds the reversed order of Item1 and Item2 in the values/morals datasets.
ch.valuesAddReversedItemOrder(data, item1Col, item2Col, dirOverlapCol)
data |
morals dataframe. |
item1Col |
a string that specifies the name of the column in "data" that contains one of the items in the morals task. |
item2Col |
a string that specifies the name of the column in "data" that contains the comparison item in the morals task. |
dirOverlapCol |
a string that specifies the name of the column in "data" that contains the directional Overlap for the item in each trial. |
the dataset with the added reversed order of Item1 and Item2. Because this dataset doubles the actual data (all A-B item combinations are duplicated to be B-A combinations as well), do not use it for analysis unless you keep this in mind. The duplication is sometimes needed because the overlap dataset only outputs one of these orders. The data will add a "probeOrder" column that states whether the order of Item1 and Item2 are "original" or "reversed."
ch.valuesAddReversedItemOrder (data=myData, "Item1", "Item2", "dirOverlap")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.