import_single: JATOS text file parsing function (single result)

View source: R/import_single.R

import_singleR Documentation

JATOS text file parsing function (single result)

Description

import_single() parses a single JATOS .txt file to a (list of) R object(s).

Usage

import_single(
  jatos_txt_file,
  accuracy = FALSE,
  task_excl = TRUE,
  hbayesDM = FALSE,
  qstns_gillan = TRUE,
  prolific = TRUE,
  combine = FALSE,
  issues = FALSE,
  incomplete = FALSE,
  add_sex = FALSE,
  ...
)

Arguments

jatos_txt_file

JATOS text file path

accuracy

Include final block AB accuracy < 0.6 as part of exclusion criteria?

task_excl

Use digit span of 0 or > 95% preference for one button as exclusion criteria?

hbayesDM

Return additional df with training data formatted for hBayesDM?

qstns_gillan

Return formatted subset of questionnaire questions?

prolific

Use prolific IDs as subjID?

combine

Combine everything into a single data.frame?

issues

Return feedback from end of experiment?

incomplete

Is the text file of interest incomplete?

add_sex

Add sex to participant info? Imputes (assumed) birth-assigned sex for non-binary individuals from Prolific export - workaround to enable it to be more reasonably controlled for in models (given very low numbers of non-binary individuals).

...

Other arguments (used by import_multiple()).

Value

list of tbl_df, or a single tbl_df if combine == TRUE.


qdercon/pstpipeline documentation built on June 1, 2025, 1:11 p.m.