Re: [Rd] Use of all/any

From: Bill Dunlap <bill_at_insightful.com>
Date: Fri, 26 Oct 2007 12:53:46 -0700 (PDT)

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



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Fri 26 Oct 2007 - 19:57:20 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 30 Oct 2007 - 03:46:12 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.