med_to_dt: Convert MedPC File to an R data table

Description Usage Arguments Value

Description

Convert MedPC File to an R data table

Usage

1

Arguments

file

string or vector; complete path to MedPC data file

group

string (optional); experimental group of animal

condition

string (optional); experimental condition (i.e. drug)

Value

data table with the following variables:
subject
group
condition
date = ddmmyy
trial = trial number
pLeftBlink = p(left blink) on trial
pRightBlink = p(right blink) on trial, 1-p(left blink)
blinkSequence = actual sequence of blinks from start of trial until response
choice = choice on trial; 0=left, 1=right RT = response time for trial omission = did rat get reward (only applicable for correct trials)? 0 if yes, 1 if no rewardRT = response time from decision to reward; 0 if incorrect startTime = time in session at start of trial decisionTime = time in session at decision rewardTime = time in session at reward receipt trialTime = duration of trial pCorrectBlink = p(blink) on correct side; p(left blink) if left is correct, p(right blink) if right is correct correctSide = 0 is left is correct answer, 1 if right is correct answer correctChoice = 0 if incorrect, 1 if correct


gkane26/rblinks documentation built on May 24, 2019, 8:51 a.m.