search for: tblscore_mean

Displaying 1 result from an estimated 1 matches for "tblscore_mean".

2011 Jun 03
0
ragged data.frame? using plyr
...s(scaled_value)<-dframe$id return(scaled_value) } score_out<-ddply(dat,.(day),adj.values) Gives me my data.frame all nice and pretty and ready to do the following: score_out.melt<-melt(score_out,id='day') names(score_out.melt)<-c('day','id','score') tblscore_mean<-tapply(score_out.melt$score,INDEX=score_out.melt$id,mean) tblscore_iqr<-tapply(score_out.melt$score,INDEX=score_out.melt$id,IQR) score_mean_iqr<-data.frame(id=names(tblscore_iqr),mean=tblscore_mean,iqr=tblscore_iqr) However, as it turns out, my data look more like: dat<-dat[-sam] l...