filter_trainingexposed: Filter out when a participant has trained

View source: R/filters.R

filter_trainingexposedR Documentation

Filter out when a participant has trained

Description

Several LCBC projects have some memory training experimental procedure. For some papers, this might come in the way of answering hypotheses. This function helps filter out participants data after they have been exposed to training. Meaning data before training remain, data after do not.

Usage

filter_trainingexposed(data, predicate)

Arguments

data

The MOAS or a MOAS generated file.

predicate

a logical statement to identify rows of data under memory experimentation

Value

tibble

Examples

  dt <-  data.frame(
    CrossProject_ID = rep("1000000", 6),
    Site_Name = c("ousAvanto", "ousAvanto","ousAvanto",
                "ousSkyra", "ousSkyra", "ousSkyra"),
    Subject_Timepoint = c(1:3,3:5),
    Age = c(8, 10, 14, 14, 17, 20),
    stringsAsFactors = FALSE
  )
  filter_site(dt)

LCBC-UiO/MOAS documentation built on Aug. 28, 2023, 3:29 a.m.