Dear mailing list,

I have a big data frame and each element in the matrix has two alphabets. I
want to split those alphabets into two so each element will have one
alphabet and the number of my columns will be doubled . So can some one help
with the code?
Example of what I want is to split them.


Input   (three column)

GG       AG       AG

CC       CC       CC

CC       CC       CC

AG       AG       AG

GG       GG       GG
TT        TT        CT


 Output   (six column)

G G A G A G

C C C C C C

C C C C C C

A G A G A G

G G G G G G
T T T T C T

thank you

        [[alternative HTML version deleted]]

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to