Hi All R Experts, Please help me. Query is given at the end of this R Session
+++++++++start of R Session+++++++ > SCORES<-read.csv("C:/SCORE.csv",header=TRUE,sep=",") > SCORES SrNo Player Score 1 1 A 12 2 2 B 23 3 3 C 34 4 4 A 54 +++++++++++++++++ 17 17 A 433 18 18 B 32 19 19 B 34 20 20 C 34 > A<-subset(SCORES,Player=="A") > A SrNo Player Score 1 1 A 12 4 4 A 54 5 5 A 342 6 6 A 45 9 9 A 45 10 10 A 34 11 11 A 65 17 17 A 433 > class(SCORES) [1] "data.frame" > class(A) [1] "data.frame" +++++++++end of R Session++++++++++ question:- I want to convert the above given data frame i.e. "A" into a data frame like this given below. So that my indexing looks good. SrNo Player Score 1 1 A 12 2 4 A 54 3 5 A 342 4 6 A 45 5 9 A 45 6 10 A 34 7 11 A 65 8 17 A 433 Please help :-) Or give me some pointers i have tries searching the R FAQs also but i could not locate. I know its trivial. ============================================================================================ DISCLAIMER AND CONFIDENTIALITY CAUTION:\ \ This message and ...{{dropped}} ______________________________________________ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.