do.call2 {BBmisc} | R Documentation |
do.call
.This function is supposed to be a replacement for do.call
in situations
where you need to pass big R objects.
Unlike do.call
, this function allows to pass objects via ...
to avoid a copy.
do.call2(fun, ..., .args = list())
fun |
[ |
... |
[any] |
.args |
[ |
Return value of fun
.
## Not run:
library(microbenchmark)
x = 1:1e7
microbenchmark(do.call(head, list(x, n = 1)), do.call2("head", x, n = 1))
## End(Not run)