Have you checked the package seqinR at CRAN?  It may help.

Also, if you split a string into single characters using strsplit, then 
use table to count characters.


seq<-"ATGAAC"


table(strsplit(seq, ""))

A C G T
3 1 1 1




 > 3. based on "AAABBB",how can i get some statistics of this string 
such as how
 > many letters,how many "A"s in the string.
-- 

-----------------
Chris Stubben

Los Alamos National Lab
BioScience Division
MS M888
Los Alamos, NM 87545

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to