Ops.data.frame fails with second arg a list (PR#1889)

Peter Dalgaard BSA p.dalgaard@biostat.ku.dk
08 Aug 2002 10:37:12 +0200


b.rowlingson@lancaster.ac.uk writes:

> Full_Name: Barry Rowlingson
> Version: 1.5.0
> OS: linux-gnu 
> Submission from: (NULL) (130.95.16.114)
> 
> 
> Comparison of a data frame with a list fails with an error that 
> looks to be due to a typo in Ops.data.frame:
> 
> > d <- data.frame(1:10)
> > d > list(5)
> Error in Ops.data.frame(d, list(5)) : Object "scalar" not found
> 
> Code has:
>         rscalar <- length(e2) <= 1
>         if (isList(e2)) {
>             if (scalar) 
> 
>  and hence 'Object "scalar" not found'. Should it be 'rscalar'?

Yep. Thanks. (Still there in 1.5.1, and in r-devel).

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._