b.rowlingson@lancaster.ac.uk
2002-Aug-08 07:38 UTC
Ops.data.frame fails with second arg a list (PR#1889)
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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Peter Dalgaard BSA
2002-Aug-08 08:37 UTC
Ops.data.frame fails with second arg a list (PR#1889)
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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._