> Try this variation of my.transform that I had posted here: > http://tolstoy.newcastle.edu.au/R/e2/help/07/09/24707.html > > List <- function(..., L = list()) { > f <- function(){} > formals(f) <- eval(substitute(as.pairlist(c(alist(...), L)))) > body(f) <- substitute(modifyList(L, list(...))) > f() > }
Wow, this does the trick. Thanks a lot. Is this function part of any package? Since I'd like to use it on a regular basis, it would be great to have it packaged somewhere. If not, I could (provided you agree) include it in a package I maintain. Thanks again. ______________________________________________ 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.