[BioC] how to split one word into letters
Huntsinger, Reid
reid_huntsinger at merck.com
Wed Nov 17 17:26:52 CET 2004
strsplit(word,split="") will do this.
Reid Huntsinger
-----Original Message-----
From: bioconductor-bounces at stat.math.ethz.ch
[mailto:bioconductor-bounces at stat.math.ethz.ch] On Behalf Of Wenbin Liu
Sent: Wednesday, November 17, 2004 10:44 AM
To: Liu, Xin; bioconductor at stat.math.ethz.ch
Subject: Re: [BioC] how to split one word into letters
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.
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
More information about the Bioconductor
mailing list