Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does ...=... do in R?

Tags:

r

What does ... = ... mean as a function parameter? I saw this in some R source code. I understand that ... is additional arguments, but not sure what the equals does?

like image 388
SFun28 Avatar asked Jan 04 '12 02:01

SFun28


1 Answers

It is superfluous and the same as .... Probably the author meant that the ... of the called function should equal to the ... of the calling function, but that's the same as using just ... (in fact the ...=... construct may be confusing since it may invoke the idea that arguments other than ... of the called function won't be used which is not true).

like image 62
Simon Urbanek Avatar answered Nov 20 '22 16:11

Simon Urbanek