[R] spliting a word into letters

Bert Gunter gunter.berton at gene.com
Wed Nov 4 23:54:08 CET 2009


?strsplit

e.g. strsplit(vectorofstrings,split="")

Bert Gunter
Genentech Nonclinical Biostatistics
 
 

-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On
Behalf Of mirauta
Sent: Wednesday, November 04, 2009 1:07 PM
To: r-help at r-project.org
Subject: [R] spliting a word into letters


Hello,
Is there any function to split a word into letters?
(eg: "AAACC" into "A","A","A","A""C","C" )
I need to load some ADN sequences and ussualy these are writen in words
without spaces between letters.

Thanks,
Bogdan
-- 
View this message in context:
http://old.nabble.com/spliting-a-word-into-letters-tp26204628p26204628.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help at r-project.org 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.




More information about the R-help mailing list