Displaying 1 result from an estimated 1 matches for "avgsd".
Did you mean:
avgs
2012 May 03
1
Identifying case by groups in a data frame
...this, but I can not make a relation to to orginal data for identifiying the cases.If you have some lights please share it.
data(iris)
library(plyr)
petal.wid.avg <-ddply(iris,.(Species),function(df)
return(c(petal.wid.avg=mean(df$Petal.Width),petal.wid.sd=sd(df$Petal.Width)))
)
petal.wid.avg$avgsd <-petal.wid.avg$petal.wid.avg +petal.wid.avg$petal.wid.sd
petal.wid.avg
Thanks in advance:
José
[[alternative HTML version deleted]]