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
On Fri, 26 Oct 2007, Martin Maechler wrote:
> Apropos Bill Dunlap's note: Do newer versions of S-plus warn?
> At least up to 6.2.2, I'm pretty sure no S version has warned
> about
> X <- c(0.1, pi)
> all(X) > 0.5
Hi Martin,
No, it doesn't warn. We had a user who ran into a bug
in a
On 10/26/2007 12:18 PM, Martin Maechler wrote:
>> "BDR" == Prof Brian Ripley <[EMAIL PROTECTED]>
>> on Fri, 26 Oct 2007 08:16:03 +0100 (BST) writes:
>
> BDR> all/any coerce their arguments to logical (if
> BDR> possible). I've added a warning in R-devel if coercion
> BDR>
> "BDR" == Prof Brian Ripley <[EMAIL PROTECTED]>
> on Fri, 26 Oct 2007 08:16:03 +0100 (BST) writes:
BDR> all/any coerce their arguments to logical (if
BDR> possible). I've added a warning in R-devel if coercion
BDR> is from something other than integer.
BDR> This aros
all/any coerce their arguments to logical (if possible). I've added a
warning in R-devel if coercion is from something other than integer.
This arose because it is easy to make a slip and write all(X) > 0 rather
than all(X > 0): thanks to Bill Dunlap for bringing that to my attention.
However,