i have below data format. it have cbind a,b data according to date.
a b days
--------------------------------
c(1,2,3) c(1,2,3) 2018-06-22
c(4,5,6) c(4,5,6) 2018-06-23
....
--------------------------------
and i wanna convert it to different formats that have a,b columns according to days
2018-06-22 2018-06-23 ....
-------------------------------
a b a b
-----------------------------
1 1 4 4
2 2 5 5
3 3 3 3
how can i convert it ?