Displaying 1 result from an estimated 1 matches for "meanfram".
Did you mean:
meanframe
2012 Sep 26
2
average environmental data if AnimalID and Time is duplicated
...quot;27","28")
)
myframe
As you can see for Ernie I do have different data for 24.09.2012 9:00. Now I
would like to average the Hunger and Temp value for this timestamp to get a
data frame without duplicated Times and the respective average Temp and
Hunger.
I tried something like
Meanframe<- by(myframe[, 3:4], duplicated(myframe$ID,
Zusatzdaten3$Timestamp) == TRUE, mean)
but it doesn't work and I guess that it is also totally crap ;-)
Tagmarie
--
View this message in context: http://r.789695.n4.nabble.com/average-environmental-data-if-AnimalID-and-Time-is-duplicated-tp4...