Description Usage Value Examples
Allow the named entries in ...
to be used easily within a
function by attaching them to the function's environment
1 |
No return value, called for it's side effect
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | f <- function(...) {
a + b
}
## Not run:
# Throws an error because a and b are trapped inside `...`
f(a = 1, b = 2)
## End(Not run)
f <- function(...) {
extract_dots()
a + b
}
f(a = 1, b = 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.