[BioC] how to split one word into letters

Liaw, Andy andy_liaw at merck.com
Tue Nov 16 19:50:20 CET 2004


strsplit() is your friend:

> strsplit("alabama", "")[[1]]
[1] "a" "l" "a" "b" "a" "m" "a"

Cheers,
Andy

> From: Liu, Xin
> 
> 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
> 
>



More information about the Bioconductor mailing list