jhallman@frb.gov
2001-Mar-30 21:03 UTC
[Rd] User defined assignment function ignores argument names (PR#888)
Full_Name: Jeff Hallman Version: 1.2.2 OS: Solaris Submission from: (NULL) (132.200.32.33) "boink<-" <- function(x, a = 1, b = 2, value){ print(match.call()) x }> z <- 1 > boink(z, b = 4) <- 22boink<-(x = *tmp*, a = 4, value = 22)>Shouldn't it have matched the 4 to b, not a? -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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
2001-Mar-30 22:46 UTC
[Rd] User defined assignment function ignores argument names (PR#888)
jhallman@frb.gov writes:> "boink<-" <- function(x, a = 1, b = 2, value){ > print(match.call()) > x > } > > > z <- 1 > > boink(z, b = 4) <- 22 > boink<-(x = *tmp*, a = 4, value = 22) > > > > Shouldn't it have matched the 4 to b, not a?Yes. Fixed for 1.2.3 -- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._