preprocess_dataset | R Documentation |
Preprocess tracker and controller data
Features expected by the analysis functions are only available after some minor computations in the raw data
preprocess_dataset(
experiment_folder,
dataset,
treatments = c("TREATMENT_A", "TREATMENT_B"),
delay = 0,
border_mm = 5,
CSplus_idx = 1
)
experiment_folder |
Path to folder containing IDOC results .csv files |
dataset |
List of raw data including:
|
treatments |
Vector of treatments. If named and names contain the word treatment, it is likely that the user is running old API code |
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 |
border_mm |
mm from center of chamber to decision zone edge |
CSplus_idx |
Whether the first treatment (CSplus_idx=1) or the second (CSplus_idx=2) is associated with + exits |
tracker_data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.