[R] spliting

From: yohannes alazar <hannesalazar_at_gmail.com>
Date: Fri 28 Jul 2006 - 21:13:45 EST


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. Received on Fri Jul 28 21:17:23 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Fri 28 Jul 2006 - 22:17:25 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.