Re: [R] How to convert a list to a ... argument for a function

2010-10-05 Thread Charles C. Berry
On Tue, 5 Oct 2010, Richard R. Liu wrote: Hi, I have a function f <- function(..., func){ something }, where func is a function of the form function(...). ??I would like to pass func all the arguments passed to f except the last. ??I know that I can manipulate the variable number of arguments

Re: [R] How to convert a list to a ... argument for a function

2010-10-05 Thread Duncan Murdoch
On 05/10/2010 2:23 PM, Richard R. Liu wrote: Hi, I have a function f<- function(..., func){ something }, where func is a function of the form function(...). I would like to pass func all the arguments passed to f except the last. I know that I can manipulate the variable number of arguments

[R] How to convert a list to a ... argument for a function

2010-10-05 Thread Richard R. Liu
Hi, I have a function f <- function(..., func){ something }, where func is a function of the form function(...).  I would like to pass func all the arguments passed to f except the last.  I know that I can manipulate the variable number of arguments passed to f by converting ... to a list, i.e.,