Skip to content
Prev 55616 / 63421 Next

substitute() on arguments in ellipsis ("dot dot dot")?

On 12/08/2018 4:00 PM, Henrik Bengtsson wrote:
I think so.  substitute(list(...)) gives you a single expression 
containing a call to list() with the unevaluated arguments; you can 
convert that to what you want using something like

dots <- function (...) {
   exprs <- substitute(list(...))
   as.list(exprs[-1])
}

Duncan Murdoch