Subject: RE: [R] nargs() inside "[.myclass"
From: Vadim Kutsyy (vadim@kutsyy.com)
Date: Tue 27 Jun 2000 - 08:56:41 EST
Message-ID: <OFEGJMACADMFOKHCCFBJIELJCIAA.vadim@kutsyy.com>
> Apropos: Here's a little exercise:
>
> > f<-function(...)nargs()
> > f(1)
> [1] 1
> > f()
> [1] 0
> > f(,)
> [1] 2
> > f(,,)
> [1] 3
>
> Now, how do you call f with exactly *one* missing argument?
Well, you got me. How do you call it?
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help 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-help-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
This archive was generated by hypermail 2b25 : Mon 17 Jul 2000 - 12:33:24 EST