Created
March 12, 2015 20:00
-
-
Save stormxuwz/f641299b43a96298a12e to your computer and use it in GitHub Desktop.
The three-dots construct in R
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test_function_1 <- function(a=1){ | |
cat("a is here",a) | |
} | |
test_function_2 <- function(b,...){ | |
test_function_1(...) | |
} | |
test <- function(a,b){ | |
test_function_2(b,a) | |
} | |
test(10,20) # should print 10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment