Skip to content
Back to formatted view

Raw Message

Message-ID: <1356376908783-4653889.post@n4.nabble.com>
Date: 2012-12-24T19:21:48Z
From: jenna
Subject: apply with missing values

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.