From bill at insightful.com  Fri Oct 26 21:53:46 2007
From: bill at insightful.com (Bill Dunlap)
Date: Fri, 26 Oct 2007 12:53:46 -0700 (PDT)
Subject: [Rd] Use of all/any
In-Reply-To: <Pine.GSO.4.56.0710261145460.10088@durian.statsci.com>
References: <Pine.LNX.4.64.0710260751480.4295@gannet.stats.ox.ac.uk>
	<18210.4928.146934.283358@stat.math.ethz.ch>
	<Pine.GSO.4.56.0710261145460.10088@durian.statsci.com>
Message-ID: <Pine.GSO.4.56.0710261253070.10088@durian.statsci.com>

On Fri, 26 Oct 2007, Bill Dunlap wrote:

> In Splus I use
>    rapply(expr, classes="call",
>      f=function(x)if(isComparisonOfAnyOrAll(x))deparseText(x))
> to rattle down an an expression tree looking for this pattern.
> However's R's rapply won't let me do that because
> it insists its input be a function instead of being of
                         oops, "a list", not "function"
> recursive type.  Its help file says it evaluates the arguments
> to f() even if they are expressions, and that may contribute
> to problems.  The Splus rapply accepts any recursive type and it does not
> evaluate the subtrees that it hands to f().

----------------------------------------------------------------------------
Bill Dunlap
Insightful Corporation
bill at insightful dot com
360-428-8146

 "All statements in this message represent the opinions of the author and do
 not necessarily reflect Insightful Corporation policy or position."



[Rd] Use of all/any
Bill Dunlap