Displaying 2 results from an estimated 2 matches for "onsettim".
Did you mean:
onsettime
2011 Jun 28
2
Loop through each subject
...at <- read.table("test2.txt", header = TRUE, na.strings = NA,
stringsAsFactors = FALSE, sep = "\t")
for(i in 1:length(dat))
{
for (i in 1:)dat[(unique(dat$Subject)),)]
{
colg <- dat[grep("Green", dat$CueProbe),]
colg <- data.frame(colg$SRRTCue.OnsetTime/1000, (colg$SRRTFix2.OnsetTime-
colg$SRRTCue.OnsetTime)/1000, (ifelse((colg$SRRTProbe.ACC == 1 | colg$Probe==
"+"), 1, 0)))
colr <- dat[grep("Red", dat$CueProbe),]
colr <- data.frame(colr$SRRTCue.OnsetTime/1000, (colr$SRRTFix2.OnsetTime-
colr$SRRTCue.OnsetTime)/10...
2008 Aug 21
3
mean for vector with NA
I am trying to find the mean for the elements in the vector
Incubation=as.POSIXlt(OnsetTime)-as.POSIXlt(MealTime)
where
OnsetTime=c(NA,"1940-04-19 00:30","1940-04-19 00:30","1940-04-19
00:30",NA,"1940-04-18 22:30","1940-04-18 22:30","1940-04-19
02:00","1940-04-19 01:00","1940-04-18 23:00",NA,NA,NA,"...