search for: __________r_

Displaying 1 result from an estimated 1 matches for "__________r_".

Did you mean: ____________
2007 May 31
1
Selective 'expansion' of arguments in a match.call() result ...
...ion 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 ... ______________________________________________Thanks a lot!__________R_ # When called with document = 1, we have the simple match.call() result, # when document = 2 and name is a string, it is expanded, otherwise it # is not example <- function (name, document = FALSE) { print(name) if(document == 1) { resh <- match.call() } else if (...