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

About this list Date view Thread view Subject view Author view Other groups

Subject: RE: [R] nargs() inside "[.myclass"
From: Vadim Kutsyy (vadim@kutsyy.com)
Date: Tue 27 Jun 2000 - 08:01:39 EST


Message-ID: <OFEGJMACADMFOKHCCFBJOELHCIAA.vadim@kutsyy.com>

> This does seem to work:
>
> > "[.myclass"<-function(x,...)
> > {n<-nargs();if(n==2&&missing(..1))n<-1;print(n-1)}
> > x[]
> [1] 0
> > x[1]
> [1] 1
> > x[1,2]
> [1] 2

It does, thank you. could you explain what ..1 stands for?
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b25 : Mon 17 Jul 2000 - 12:33:24 EST