getRats: Preprocesses participant ratings Takes in a raw data .csv...

Description Usage Arguments Value

View source: R/preprocess_funcs.R

Description

Contains functions for preprocessing the raw data getRatings() creates a dataframe containing pre and post-task ratings from a single file (session) getMain() creates a dataframe containing results of the main part of the experiment

Usage

1
getRats(file, sub = NA, exp = -1, full_only = F)

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)

exp

is the experiment number

full_only

(bool) a check whether all files contain 3 full ratings (stops otherwise)

Value

a data.table with session ratings


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