Jeff Newmiller writes:
> It x is a list...
>
> do.call(fun,x)
Thanks - works perfectly. Only one further question:
In my original usage, fun() is an S3 Generic Function and takes as the
first argument an object which obviously *must not be* expanded, while
the ... need to be extended.
--8<
It x is a list...
do.call(fun,x)
You should keep external data input away from this code construct to avoid
intentional or unintentional misuse of your fun.
If your toy example were your actual usage I would suggest the collapse
argument of paste.
--
Hi
Following scenario: I have a function fun
--8<---cut here---start->8---
fun <- function(A, B, C, ...){paste(A, B, C, ...)}
--8<---cut here---end--->8---
and x defined as follow
--8<---cut here---
3 matches
Mail list logo