I have 5 excel sheets, sharing same number of rows and columns.I would like to make one sheet by combining rows from these 5 sheets in a way that each row from these sheets come below to each other. How is this possible in Excel / R / or any other programming language.I have shared my sample input and desired output..
Input data:
SHEET 1:
Year | A | B |
---|---|---|
2000 | 0.2 | 0.3 |
2001 | 0.5 | 0.4 |
2002 | 0.1 | 0.2 |
2003 | 0.2 | 0.3 |
2004 | 0.5 | 0.1 |
2005 | 0.2 | 0.2 |
SHEET 2:
Year | st1 | st2 |
---|---|---|
2000 | blue | blue |
2001 | red | red |
2002 | yellow | yellow |
2003 | green | green |
2004 | white | white |
2005 | black | black |
Desired output
Year | x1 | x2 |
---|---|---|
2000 | 0.2 | 0.3 |
2000 | blue | blue |
2001 | 0.5 | 0.4 |
2001 | red | red |
2002 | 0.1 | 0.2 |
2002 | yellow | yellow |
2003 | 0.2 | 0.3 |
2003 | green | green |
2004 | 0.5 | 0.1 |
2004 | white | white |
2005 | 0.2 | 0.2 |
2005 | black | black |
I would appreciate any help in this regard.Thank you in advance.