Last chance! 50% off unlimited learning
Sale ends in
# Set up a function to dispatch dot arguments to:
f <- function(a=1, b=2, c=3){
print(c(a,b,c))
}
# Set up a function for passing dots:
g <- function(...){
CrispRVariants:::dispatchDots(f, ...)
}
g(a = 5)
g(a = 5, call = TRUE)
# Unrelated arguments will not be passed on
g(a = 5, d = 6)
Run the code above in your browser using DataLab