I'm preparing the stats for currency values, I have currency values for every day, every year is in an individual excel-file. I've managed to read xls
files, but I want to merge the data frames for every year. They look like:
Date EUR SEK NOR PLN ROM SKR
1-1-1998 2,21 1,23 1,13 2,99 9,12 6,17
2-1-1998 1,13 12,2 2,11 9,22 1,11 2,33
But some of them has more colums (additional currency), like:
Date EUR SEK NOR PLN ROM SKR JKC
1-1-1998 2,21 1,23 1,13 2,99 9,12 6,17 1,11
2-1-1998 1,13 12,2 2,11 9,22 1,11 2,33 2,13
I just want to merge them this way:
Date EUR SEK NOR PLN ROM SKR
1-1-1998 2,21 1,23 1,13 2,99 9,12 6,17
2-1-1998 1,13 12,2 2,11 9,22 1,11 2,33
Date EUR SEK NOR PLN ROM SKR JKC
1-1-1998 2,21 1,23 1,13 2,99 9,12 6,17 1,11
2-1-1998 1,13 12,2 2,11 9,22 1,11 2,33 2,13
etc.
I tried to use merge()
, but it treated identical values as one, rbind
doesn't work because there are different numbers of columns. How should I combine those data frames?