[R] vectorised recovery of strsplit value ??

maddox matthewgdodds at hotmail.com
Thu Dec 23 09:57:44 CET 2010

Thanks Jorge, for your reply. In the end I changed my approach and used a
sub() strategy I found on this forum to recover the prefixes as below.

IDs.prefix <- sub("([^*])(_.*)", "\\1" , sampleIDs )
IDs.split <- cbind(sampleIDs , IDs.prefix)


View this message in context: http://r.789695.n4.nabble.com/vectorised-recovery-of-strsplit-value-tp3161254p3161806.html
Sent from the R help mailing list archive at Nabble.com.

More information about the R-help mailing list