Re: [R] R string functions

2011-06-15 Thread karena
Thank all you guys for the great help~. I appreciate -- View this message in context: http://r.789695.n4.nabble.com/R-string-functions-tp3600484p3600975.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list

Re: [R] R string functions

2011-06-15 Thread Steve Lianoglou
Hi, On Wed, Jun 15, 2011 at 4:37 PM, karena wrote: > Hi, > > I have a string "GGCCCAATCGCAATTCCAATT" > > What I want to do is to count the percentage of each letter in the string, > what string functions can I use to count the number of each letter appearing > in the string? > > For example,

Re: [R] R string functions

2011-06-15 Thread Peter Alspach
Tena koe Karena Try: table(strsplit("GGCCCAATCGCAATTCCAATT", '')) HTH ... Peter Alspach > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of karena > Sent: Thursday, 16 June 2011 8:37 a.m. > To: r-help@r-project.org > Subje

Re: [R] R string functions

2011-06-15 Thread Daniel Malter
x<-'GTTACTGGTACC' table(strsplit(x,'')) hth, Daniel karena wrote: > > Hi, > > I have a string "GGCCCAATCGCAATTCCAATT" > > What I want to do is to count the percentage of each letter in the string, > what string functions can I use to count the number of each letter > appearing in the str