Skip to contents

Merge study and recall events that have the same subject, list, and item.

Usage

merge_free_recall(
  data,
  merge_keys = NULL,
  list_keys = NULL,
  study_keys = NULL,
  recall_keys = NULL,
  position_key = "position"
)

Arguments

data

Free recall data in Psifr format. Must have subject, list, trial_type, position, and item columns.

merge_keys

Columns to use to designate events to merge. Default is list(‘subject’, ‘list’, ‘item’), which will merge events related to the same item, but only within list.

list_keys

Columns that apply to both study and recall events.

study_keys

Columns that only apply to study events.

recall_keys

Columns that only apply to recall events.

position_key

Column indicating the position of each item in either the study list or the recall sequence.

Value

Merged information about study and recall events. Each row corresponds to one unique input/output pair.

Examples

raw <- sample_data("Morton2013")
data <- merge_free_recall(raw)