[R] Writing functions

Göran Broström gb at stat.umu.se
Mon Dec 3 18:53:01 CET 2001

I want to rewrite my function(s) so that they get the elegance of
lm, coxph, etc, with formulas. Where can I find a document that
describes, in one place, how to do it? I am now reading the code
of 'coxph' and 'lm', which gives me lots of functions to look up,
like match.call, match.arg, terms, eval, and so on, but I don't get 
the overview I need from that.

What I need to know is how formulas are 'decoded', and everything 
related to that.

Thanks for any hints.

 Göran Broström                      tel: +46 90 786 5223
 professor                           fax: +46 90 786 6614
 Department of Statistics            http://www.stat.umu.se/egna/gb/
 Umeå University
 SE-90187 Umeå, Sweden             e-mail: gb at stat.umu.se

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