Description Usage Arguments Note
The do.call
can be somewhat slow, especially when working
with large objects. This function is based upon the suggestions from Hadley
Wickham on the R mailing list, see here.
Also thanks to Tommy at StackOverflow for
suggesting
how to handle double and triple colon operators, ::
, further
enhancing the function.
1 | do_call(what, args, quote = FALSE, envir = parent.frame())
|
what |
either a function or a non-empty character string naming the function to be called. |
args |
a list of arguments to the function call. The
|
quote |
a logical value indicating whether to quote the arguments. |
envir |
an environment within which to evaluate the call. This
will be most useful if |
While the function attempts to do most of what do.call
can it has limitations. It can currently not parse the example code from the
original function: do.call(paste, list(as.name("A"), as.name("B")), quote = TRUE)
and the functionality of quote
has not been thoroughly tested.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.