Entering edit mode
3.6 years ago
Inquisitive8995
▴
280
Hi all
I have a large data frame and I am trying to duplicate each column right beside the original one.
For example,
Input
V1 V2 V3
A T G
output
V1 V1 V2 V2 V3 V3
A A T T G G
Please let me know if there is a way to do this. Would it be possible to use rep() for this. Thanks in advance!
Hi Kevin, Thank you so much for your answer. It worked perfectly well!