[R] no partial matching of argument names after dots argument - why?

Mark Heckmann mark.heckmann at gmx.de
Mon Mar 5 10:24:58 CET 2012


I noticed that the argument names after the dots argument are not partially matched.

foo <- function(one, two, ...){
  one + two
}
> foo(o=1, t=2)
[1] 3

foo <- function(one, ..., two){
   one + two
}   

> foo(o=1, t=2) 
Fehler in one + two : 'two' fehlt


Can someone explain me the reason for this behavior?

THX
Mark 

––––––––––––––––––––––––––––––––––––
Mark Heckmann
Blog: www.markheckmann.de
R-Blog: http://ryouready.wordpress.com



More information about the R-help mailing list