Displaying 1 result from an estimated 1 matches for "timesargs".
2008 Oct 20
3
The evaluation of optional function arguments
...Kind regards, and thanks in advance,
Sietse
Sietse Brouwer
#################
## Code below. ##
## Two comment-signs for comments, one for output, none for input.
##########################
## (2) A working kludge ##
## I can kludge around it by using
callTimes <- function(tom, harry) {
timesArgs <- list(foo = tom, bar = harry)
do.call(times, timesArgs)
}
## ; but is there a Right Way, too?
############################################################
## (3) Some variants, starting from the simplest case... ##
## ...and increasing in complexity.
## (3.1) This is the function I hav...