[R] nargs() inside "[.myclass"

Vadim Kutsyy vadim at kutsyy.com
Tue Jun 27 02:33:43 CEST 2000


> > > 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?
> 
> This would seem to work:
> 
> f(a=)
> 

cute.

:)
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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 at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list