This has been possibly asked before but I have not found any relevant questions/answers (yet?).
Coming from Python
(*args
and **kwargs
), I am trying to understand the ...
construct as a function parameter in R
.
Suppose, we have
test <- function(x, ...) {
print(...)
}
test(x=c(1,2,3), c(4,5,6), c(7,8,9), c(10,11,12))
Why does it only yield
[1] 4 5 6
And how to iterate over multiple arguments (if any) ?