[R] string handling

karena dr.jzhou at gmail.com
Thu Jun 3 20:18:14 CEST 2010


I have a data.frame as the following:
var1        var2
9G/G09    abd89C/T90
10A/T9    32C/C
90G/G      A/A
.             .
.             .
.             .
10T/C      00G/G90

What I want is to get the letters which are on the left and right of '/'. 
for example, for "9G/G09", I only want "G", "G", and for "abd89C/T90", I
only want "C" and "T", how to get these?

thank you,

karena
-- 
View this message in context: http://r.789695.n4.nabble.com/string-handling-tp2242119p2242119.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list