I have two identical data frames. Same column and row headings. One has correlations in it and one has p-values. I want to merge these two tables in an interleaved manner, so that the first column is the correlation, the next the p-value, the next the correlation etc.
So if columns for table 1 are A1, A2, A3... and table 2 are B1, B2, B3... I want the end table to be A1, B1, A2, B2, A3, B3....
I've tried cbind but this puts all the correlation columns first then all the p-value columns. No interleaving.
I'm wondering if there's an easy way.
Thanks for any help!