[R] writing function with ,... )

Carmen Meier carmei3 at web.de
Thu Nov 30 21:10:28 CET 2006


Hi to all
I did not found the right hints for functions with the dot-dot-dot argument.
Is it possible to write own functions with the tree dots and if yes 
what's wrong with the following example?


test <- function(x, ...)
{
print (x)
if (exists("y"))print(y)
if (exists("z"))print(z)
}

test(4,y=2)

With regards Carmen



More information about the R-help mailing list