Displaying 1 result from an estimated 1 matches for "tp3783400p3783652".
2011 Sep 01
2
R Help finding Mean
bob<-read.csv('shi.csv', header=T)
newmean<-matrix(0, test, dim(bob)[2]-6);a<-0; for (i in
c(4,8:(dim(bob)[2])))
{a<-a+1;newmean[,a]<-tapply(bob[,i], bob$Exam, mean)}
colnames(newmean)<-colnames(bob)[c(4,8:(dim(bob)[2]))]
Could anyone please help me what does the above code does ... I want to find
mean ... but would like to know what exactly is the above code doing.