On 07/18/2012 09:11 PM, Karan Anand wrote:
hi,
    i am new to using  R, so if u can  help me in merging my csv file having
different sheets .if u can help me with the commands for it.

Hi karan,
I didn't see an answer for your question. If you are reading in several CSV files with the same number of columns, you can use "rbind":

sheet1<-read.csv("df1.csv")
sheet2<-read.csv("df2.csv")
sheet1
  V1  V2
1 23  14
2 31  27
3 19  22

sheet2
  V1  V2
1 17  41
2 30  23
3 11  32

bothsheets<-rbind((sheet1,sheet2)
bothsheets
  V1  V2
1 23  14
2 31  27
3 19  22
1 17  41
2 30  23
3 11  32

Jim

______________________________________________
R-help@r-project.org 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.

Reply via email to