From Paul.White@dsto.defence.gov.au  Thu Nov 15 05:52:24 2001
From: Paul.White@dsto.defence.gov.au (Paul.White@dsto.defence.gov.au)
Date: Thu, 15 Nov 2001 06:52:24 +0100 (MET)
Subject: [Rd] rhs of == does not work with a list of items. should it ? (PR#1172)
Message-ID: <200111150552.GAA11204@pubhealth.ku.dk>

> Hello bug people,
> 
> Version:
>  platform = i686-pc-linux-gnu
>  arch = i686
>  os = linux-gnu
>  system = i686, linux-gnu
>  status =
>  major = 1
>  minor = 3.1
>  year = 2001
>  month = 08
>  day = 31
>  language = R
> 
> is this a bug ?
> 
> x <- 1:10
> x==4:5
>  [1] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE
> 
> Nothing said it should but nothing said it shouldn't . My expectation was
> that it would successively try
> each of the values in the list and or the result for each item in the x
> vector. ie it would pick out all the matches
of 4 or 5.

> [1] FALSE FALSE FALSE  TRUE TRUE FALSE FALSE FALSE FALSE FALSE
> 
> Paul

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


[Rd] rhs of == does not work with a list of items. should it ? (PR#1172)
Paul.White@dsto.defence.gov.au