search for: tp3529825p3530034

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

2011 May 17
4
Summarize by two or more attributes
Okay everyone heres a likely softball for someone. Consider the following data frame: #Create data x<-rep(c(1,15),10) y<-rnorm(20) z<-c(rep("auto",10),rep("bus",10)) a<-rep(c(1,1,2,2,3,3,4,4,5,5),2) #Create Data frame Df<-data.frame(Source=x,Rate=y,Bin=a,Type=z) I want to create a new column the equals the sum of the Rates for each type (1,15) by Bin. A