[R] function agruments

From: Afshartous, David <afshart_at_exchange.sba.miami.edu>
Date: Sat 08 Oct 2005 - 04:03:09 EST


All,

When defining the arguments of a function, is it possible to supply a function as an argument? If so, how is this introduced into the function code as well?

For example, in the body of the function I have:

        result = function(x)

and I'd like to supply either function.1 or function.2.

Please reply directly to afshar@miami.edu

Thanks!
Dave

        [[alternative HTML version deleted]]



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sat Oct 08 04:12:49 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:40:39 EST