preprocess_controller: Preprocess controller • Make sure the status at time 0 is...

View source: R/controller.R

preprocess_controllerR Documentation

Preprocess controller
  • Make sure the status at time 0 is present

  • Shift all the events to account for some delay in the arrival of the stimuli if the user passes a delay

Description

Preprocess controller

  • Make sure the status at time 0 is present

  • Shift all the events to account for some delay in the arrival of the stimuli if the user passes a delay

Usage

preprocess_controller(controller_data, delay = 0)

Arguments

controller_data

data.frame with recordings of IDOC status at several timepoints, one timepoint per row. Wide format

delay

Seconds to shift the representation of the treatments on the plot, to account for a latency or lag between treatment delivery start and arrival to behavioral arena


shaliulab/idocr documentation built on June 1, 2025, 4:59 p.m.