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

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to