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., arglist <-
list(...).  But how do I pass func the first n-1 list items of arglist (n <-
length(arglist)), as n-1 arguments, not as one list of n-1 items?


Regards,
Richard



Richard R. Liu
richard....@pueo-owl.ch

______________________________________________
R-help@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.

Reply via email to