post_clean_low_trials: Scrub processed data with too few trials

post_clean_low_trialsR Documentation

Scrub processed data with too few trials

Description

User-friendly wrapper to replace records with too many no-responses with NA in ACE data processed with proc_by_module.

Usage

post_clean_low_trials(
  df,
  app_type = c("classroom", "explorer"),
  min_trials = 5,
  extra_demos = NULL
)

Arguments

df

a df, output by proc_by_module, containing processed ACE or SEA data.

app_type

character. What app type produced this data? One of c("classroom", "explorer"). Must be specified.

min_trials

Minimum number of trials to require in most restrictive condition. Defaults to 5. This condition is checked against the *_count summary columns, that count all trials with a valid response time (and all no-go trials, if a response was not expected.)

extra_demos

Character vector specifying any custom-added demographics columns (beyond app defaults) to pass through the function. Defaults to {codeNULL.

Value

a df, similar in structure to proc, but with records with too few trials converted to NA.


josegallegos07/aceR documentation built on June 27, 2022, 10:25 a.m.