Skip to content

How to write a function that accepts unlimited number of input arguments?

4 messages · Sean Zhang, Baptiste Auguie, Gabor Grothendieck +1 more

#
Try this:

sum.test <- function(...) sum(c(...))

More commonly one uses the list(...) construct.
On Mon, Mar 9, 2009 at 11:32 AM, Sean Zhang <seanecon at gmail.com> wrote: