search for: alternative2

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

Did you mean: alternative
2002 May 02
0
improving match.args()
Here is a suggestion for improving match.arg() Comments welcome. Best Jens Oehlschl?gel # up to now match.arg() works as t1 <- function( param = c("default", "alternative1", "alternative2") ){ param <- match.arg(param) param } # and args(t1) # > function (param = c("default", "alternative1", "alternative2")) # misleadingly tells us the default of param would be a vector of length 3 # the modified version of match.args() works as be...