ch.valuesAddReversedItemOrder: A function to add the reversed order of Item1 and Item2 in...

ch.valuesAddReversedItemOrderR Documentation

A function to add the reversed order of Item1 and Item2 in the values/morals datasets

Description

This function adds the reversed order of Item1 and Item2 in the values/morals datasets.

Usage

ch.valuesAddReversedItemOrder(data, item1Col, item2Col, dirOverlapCol)

Arguments

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.

Value

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."

Examples

ch.valuesAddReversedItemOrder (data=myData, "Item1", "Item2", "dirOverlap")

ccpluncw/ccpl_R_chValues documentation built on Feb. 12, 2024, 4:21 a.m.