[R] what can one do with (to) '..." ?
Comcast
dwinsemius at comcast.net
Tue Aug 16 03:40:12 CEST 2011
Inside your function that has a ... argument, you can get the optional arguments with :
Arg.dot <- list(...)
Section 2.1.5 of the R Language Definition which should be accessible from the help facility would appear to be sensible place to start. "Programming for Data Analysis" could also be purchased.
--
David
Sent from my iPhone
On Aug 15, 2011, at 6:47 PM, Carl Witthoft <carl at witthoft.com> wrote:
> I followed a couple threads from the archives and from stackoverflow.com, and would like to know: just what is "..." ? What I mean by this is,for example, from the point of view of a user running a function in debug mode, is "..." an object, or does it exist in the current environment as some thingy?
>
> Maybe a better question to ask is: if I were to write some function that accepts "..." for its own personal use, how do I access the optional arguments? Do I simply have to do a series of 'match' or 'pmatch' on the output of list(...) , or is there a more direct way to get at the variables?
>
> If there is a R programmer's manual that discusses this, I'm happy to read that, so just let me know.
>
> thanks
> Carl
>
> --
> -----
> Sent from my Cray XK6
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help
mailing list