I did a RCT and now I want to calculate a specific measure called ABV - somthing with participants attention, I want to calculat it among the last 45 trials (out of 200)so I split the data (using xl) and for some reason I get this error. The code works for all of the other data, the error is specific for that one table.. everything looks OK. I dont know what can I do (If I do it for all of the 200 trials, all the table, it works) Thank you!
#TEMP Data set creating running means for each person using rmean10 function
OUT1<-tapply(imp$Probe.RT.clean,list(imp$Subject,imp$ProbeBehind),rmean10)
Error in cx[1:(length(cx) - 10)] :
only 0's may be mixed with negative subscripts
I tried removing a specific paticipant who has long reaction time but that didnt help.