Re: [R] apply with missing values

2012-12-25 Thread David Winsemius
On Dec 24, 2012, at 11:21 AM, jenna wrote: I am trying to get the means of each participants avg saccade amplitude as a function of the group they were in (designated by "shape_"), but there are missing values in the datasetthis is what i tried... with(data055,tapply(AVERAGE_SACCADE_AM

Re: [R] apply with missing values

2012-12-25 Thread Jessica Streicher
A bit of data might be useful. Make a small example and post the data with dput(). On 24.12.2012, at 20:21, jenna wrote: > I am trying to get the means of each participants avg saccade amplitude as a > function of the group they were in (designated by "shape_"), but there are > missing values in

[R] apply with missing values

2012-12-24 Thread jenna
I am trying to get the means of each participants avg saccade amplitude as a function of the group they were in (designated by "shape_"), but there are missing values in the datasetthis is what i tried... with(data055,tapply(AVERAGE_SACCADE_AMPLITUDE,shape_,mean)) i get an error saying the arg