search for: foobas

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

Did you mean: foobar
2004 Jun 03
3
Sloppy argument checking for named arguments
Christian -- This is not a bug, but a feature, and the dot is not the issue here. R uses partial argument matching on function arguments. So: > f <- function(foobar = 0){print(foobar)} > f function(foobar = 0){print(foobar)} > > f(fo=1) [1] 1 > f(foo=1) [1] 1 > f(foob=1) [1] 1 > f(fooba=1) [1] 1 > f(foon=1) Error in f(foon = 1) : unused argument(s) (foon ...)