Re: R-beta: S Compatibility (again)

Martin Maechler (maechler@stat.math.ethz.ch)
Tue, 14 Apr 1998 09:35:49 +0200


Date: Tue, 14 Apr 1998 09:35:49 +0200
Message-Id: <199804140735.JAA00494@sophie.ethz.ch>
From: Martin Maechler <maechler@stat.math.ethz.ch>
To: p.dalgaard@biostat.ku.dk
Subject: Re: R-beta: S Compatibility (again)

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@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@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._