Dear All, I do not have much experience with R and I need your help.
I have a data from like this:
1_1 A B C D
1_2 a b c d
2_1 E F G H
2_2 e f g h
3_1 I J K L
3_2 i j k l
I want to combine each tow rows like this
1 A a B b C c D d
2 E e F f G g H h
3 I i J j K k L l
How can I do this?
Thanks in advance
Given the initial 6x4 matrix, do you want a 3x4 or a 3x8 matrix output? That's rather ambiguous from your presentation. I assume you want the latter, but perhaps not.