getMain: Preprocesses raw output file from an online experiment

Description Usage Arguments

View source: R/preprocess_funcs.R

Description

Takes in a raw data .csv file (as generated by JavaScript experimental code) as well as the preprocessed ratings and outputs a dataframe, where each row corresponds to a single experimental trial. Creates a set of additional columns with relevant measures.

Usage

1
getMain(file, sub = NA, rats_all, jstats = T, exp = 1)

Arguments

file

is a .csv datafile (raw experiment output from the online task)

sub

is the specific participant ID (default=NA, when iterating though all files)

rats_all

is the rating dataframe created with getRats()

jstats

(bool) whether to include judgement difficulty & magnitude

exp

is the experiment number


SpTB/cibtools documentation built on Dec. 18, 2021, 2:08 p.m.