[R] More function arguments meaning the same.

BXC (Bendix Carstensen) bxc at novonordisk.com
Thu Dec 6 11:36:32 CET 2001


Sometimes when I write a function, I would like 
be able to have two or more names for an argument 
(you can never remember whether it is called "breaks", 
"Brk", "cuts" or "Cut".)

Is there a smart way of doing this, in the case where 
1) a default value for the argument should be supplied AND
2) the deparse( substitute( arg ) ) should work for graph annotation etc.

Bendix Carstensen

----------------------
Bendix Carstensen
Senior Statistician
Steno Diabetes Centre
Niels Steensens Vej 2
DK-2820 Gentofte
Denmark
tel: +45 44 43 87 38
mob: +45 28 25 87 38
fax: +45 44 43 73 13
bxc at novonordisk.com
www.biostat.ku.dk/~bxc
----------------------


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list