Skip to content

problem with compating 2 strings

3 messages · venkata kirankumar, Dimitris Rizopoulos, PIKAL Petr

#
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

r-help-bounces at r-project.org napsal dne 22.01.2009 10:49:26:
Works for me

a<-letters
b<-letters[1:10]
[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
[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
http://www.R-project.org/posting-guide.html