[Rd] User defined assignment function ignores argument names (PR#888)
Peter Dalgaard BSA
p.dalgaard@biostat.ku.dk
31 Mar 2001 00:46:29 +0200
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._