[R] information
Jim Lemon
jim at bitwrit.com.au
Sat Jul 21 12:48:27 CEST 2012
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
More information about the R-help
mailing list