[R] turning R expressions into functions?
Jochen Voß
voss at seehuhn.de
Sun Dec 9 19:39:18 CET 2012
Dear all,
Sorry for my slow answer, and thanks for all the suggestion.
On 23 Jul 2012, at 22:25, William Dunlap <wdunlap at tibco.com> wrote:
> You can use the odd idiom substitute(...()) to get the unevaluated ... arguments:
>> f1 <- function(x, ...) substitute(...())
>> f1(1, warning("Hmm"), stop("Oops"), cat("some output\n"))
This is what I finally settled on using.
Many thanks,
Jochen
--
http://seehuhn.de/
More information about the R-help
mailing list