Hi all, I got one problem with compating charecterstrings with using "==" can anyone suggest if any other way to compare two charecterstrings thanks in advance [[alternative HTML version deleted]]
an example would be helpful ... > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. venkata kirankumar wrote:> Hi all, > > I got one problem with compating charecterstrings with using "==" > can anyone suggest if any other way to compare two charecterstrings > > thanks in advance > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >-- Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus Medical Center Address: PO Box 2040, 3000 CA Rotterdam, the Netherlands Tel: +31/(0)10/7043478 Fax: +31/(0)10/7043014
Hi r-help-bounces at r-project.org napsal dne 22.01.2009 10:49:26:> Hi all, > > I got one problem with compating charecterstrings with using "==" > can anyone suggest if any other way to compare two charecterstringsWorks for me a<-letters b<-letters[1:10]> a==b[1] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE [26] FALSE Warning message: In a == b : longer object length is not a multiple of shorter object length> a%in%b[1] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE [26] FALSE>Regards Petr> > thanks in advance > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guidehttp://www.R-project.org/posting-guide.html> and provide commented, minimal, self-contained, reproducible code.