Re: [R] Error in FUN with tapply and by

2009-05-22 Thread Thomas Levine
> str(time) function (x, ...) > str(t_p1) num [1:576] 190 180 190 200 210 200 220 190 230 230 ... > str(Baseline.integrated) Factor w/ 2 levels "Baseline","Integrated": 1 1 1 1 1 1 1 1 1 1 ... > str(Technique) Factor w/ 2 levels "Barrel","NonPrefHand": 1 1 1 1 1 1 1 1 1 1 ... > str(Grip) Factor

Re: [R] Error in FUN with tapply and by

2009-05-22 Thread jim holtman
Error message is self-explanatory: there is an unused parameter 'na.rm=TRUE'. You are calling your function 'truecost' which only has a single parameter 'time' and you are attempting to pass in 'na.rm=TRUE' which it will not accept. You don't need it. On Fri, May 22, 2009 at 12:36 PM, Thomas Lev

[R] Error in FUN with tapply and by

2009-05-22 Thread Thomas Levine
A subset of my raw data looks like this: -- "Grip" "Technique" "Baseline.integrated" "Task" "Stroke..direction.""Engag" "Disen" "PenDG" "PenUG" "PenDS" "PenUS" "Duration" - "Tripod","Barrel","Integrated"