filter_rows: Filter rows based on your exclusion criteria.

View source: R/filter_rows.R

filter_rowsR Documentation

Filter rows based on your exclusion criteria.

Description

Filter rows and/or remove entire participants with poor confidence and/or low success. Note that conf_removal and succ_removal will occur before row filtering in that order. Then rows will be filtered first by confidence, then success.

Usage

filter_rows(
  dat,
  conf_removal,
  succ_removal,
  conf_thres,
  succ_thres,
  output_dir
)

Arguments

dat

Your long-form dataframe.

conf_removal

Numeric. Do you want to remove entire participants based on average confidence score? Specify threshold here. Will keep all participants above this average. Defaults to 0.

succ_removal

Do you want to remove entire participants based on average number of unsuccessful rows? Specify threshold here. Will keep all participants above this threshold. Defaults to 0.

conf_thres

Numeric. Your confidence threshold. Will keep all rows above the specified threshold. Makes NA, does not remove.

succ_thres

Binary, TRUE/FALSE. Do you want to remove individual rows where success is zero? Defaults to FALSE. Makes NA, does not remove.

output_dir

A .txt file will generated on who was removed and what the exclusion criteria was. Where should this output file be saved?


jrcalabrese/faceup documentation built on May 16, 2022, 3:14 p.m.