R-beta: S Compatibility (again)

Martin Maechler maechler at stat.math.ethz.ch
Tue Apr 14 09:35:49 CEST 1998


Excellent job, Peter!
	(showing how functions are constructed out of expressions).

[I came too late,  Easter Monday is a holiday, here...]

Just a short addition:

approxfun(.) and splinefun(.) 
	and stepfun(.) or  ecdf(.)  [after  "library(stepfun)"]
 {{See ?approxfun, etc. for examples}}
are very nice examples in standard  R
how a function can be returned from another function.

Actually they show the superiority of R scoping rules which allow an
environment (of objects, e.g., numeric variables) for a user created
function.

Martin Maechler <maechler at stat.math.ethz.ch>			<><
Seminar fuer Statistik, ETH-Zentrum SOL G1;	Sonneggstr.33
ETH (Federal Inst. Technology)	8092 Zurich	SWITZERLAND
phone: x-41-1-632-3408		fax: ...-1086
http://www.stat.math.ethz.ch/~maechler/

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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