Re: [R] Selective 'expansion' of arguments in a match.call() result ...

2007-05-31 Thread Gabor Grothendieck
Try this: # ith arg is expanded if expand[[i]] is TRUE where expand is # extended to vector of same length as ... . # default is to expand all args if 1st arg is "character" example2 <- function(..., expand = is.character(..1)) { L <- list(...) expand <- rep(expand, length = lengt

[R] Selective 'expansion' of arguments in a match.call() result ...

2007-05-31 Thread Roberto Brunelli
Is it possible to write a support function to automatize selective argument expansion (based on argument value type) as in the following example, in order to write terse code even when there are many arguments? Forcing evaluation of all arguments is not a problem ...