Ops.data.frame fails with second arg a list (PR#1889)
b.rowlingson@lancaster.ac.uk
b.rowlingson@lancaster.ac.uk
Thu, 8 Aug 2002 09:38:30 +0200 (MET DST)
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'?
Baz
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._