[R] apply with missing values

jenna traynoj at mcmaster.ca
Mon Dec 24 20:21:48 CET 2012


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 dataset....this is what i tried...

with(data055,tapply(AVERAGE_SACCADE_AMPLITUDE,shape_,mean))
i get an error saying the argument is not numerical or logical

next i try...

> 055  <- tapply(data055$AVERAGE_SACCADE_AMPLITUDE,
+ data055$shape_,mean, na.rm =TRUE)

still nothing....

help? thanks!



--
View this message in context: http://r.789695.n4.nabble.com/apply-with-missing-values-tp4653889.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list