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.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to