[BioC] how to split one word into letters

John Zhang jzhang at jimmy.harvard.edu
Wed Nov 17 17:35:16 CET 2004


>Have you tried substring()? The method i can think of
>now is to get the length of the string (word) by
>nchar(), and then loop through by substring(). There
>may be smarter methods out there that I haven't
>realized.

How about 

>substring("abcdef",1:6,1:6)
[1] "a" "b" "c" "d" "e" "f"



>
>Wenbin
> 
>
>--- "Liu, Xin" <Xin.Liu at arradx.com> wrote:
>
>> Dear all, 
>> 
>> Somebody knows how to split one word into letters?
>> Such as split "alabama" into letters "a", "l",
>> "a","b","a","m","a".
>> 
>> Cheers!
>> Xin
>> 
>> This e-mail is from ArraDx Ltd
>> 
>> The e-mail and any files transmitted with it are
>> confidentia...{{dropped}}
>> 
>> _______________________________________________
>> Bioconductor mailing list
>> Bioconductor at stat.math.ethz.ch
>> https://stat.ethz.ch/mailman/listinfo/bioconductor
>> 
>
>
>
>		
>__________________________________ 
>
>Meet the all-new My Yahoo! - Try it today!
>
>_______________________________________________
>Bioconductor mailing list
>Bioconductor at stat.math.ethz.ch
>https://stat.ethz.ch/mailman/listinfo/bioconductor

Jianhua Zhang
Department of Biostatistics
Dana-Farber Cancer Institute
44 Binney Street
Boston, MA 02115-6084



More information about the Bioconductor mailing list