I have a dataframe with the following structure:
V1 V2 V3 V4 V5 V6 V7 V8
A B A B B A B B
It's only one row and each column has one letter. I wanna take these letters, two by two and insert them in another dataframe, as follows:
V1 V2 V3
X AB F
Y AB G
Z BA H
W BB I
How should I proceed? Maybe turn the first dataframe into a vector?
Thanks in advance!