In the documentation of sapply and replicate there is a warning regarding using ...
sapply
replicate
...
Now, I can accept it as such, but would li
An alternative way to do that:
g <- function(x, y) x + y f <- function(a = 1, ...) { arg_list <- list(...) replicate(n = 3, expr = do.call(g, args = arg_list)) } f(x = 1, y = 2)