[R] Dealing with ...

kjetil@entelnet.bo
Sat, 08 Nov 2003 21:54:02 -0000

On 9 Nov 2003 at 10:29, Hadley Wickham wrote:

Does the following help?

> test <- function(...) {
+   return( list(...) )
+ }
> test(a=4, b=7, test=17)
$a
[1] 4

$b
[1] 7

$test
[1] 17

Kjetil Halvorsen


>  From within a function, how can I extract the individual arguments that
> make up ...?
>
> I'm sure this has been discussed on here before but ... does not get
> indexed.  Any suggestions as to what I should search for would be
> equally welcome.
>
> Thanks,
>
> Hadley
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help