I have this dataframe, where the first column gives time steps and every row gives me the values:
1 1.5 1.6 5.4 7.8
2 4.5 4.6 2.4 4.7
3 7.8 7.8 6.8 6.8
I need to arrange them like this
1 1.5
2 4.5
3 7.8
1 1.6
2 4.6
3 7.8
1 5.4
2 2.4
3 6.8
1 7.8
2 4.7
3 6.8
I tried simple gather() of tidyr but it doesn't do the trick cuz I also need to do the renumbering.
Any idea...I guess its just too simple