Skip to content
Back to formatted view

Raw Message

Message-ID: <Pine.WNT.4.31.0107251637150.1080-100000@tern.stats>
Date: 2001-07-25T15:41:17Z
From: Brian Ripley
Subject: empty drop=F in [
In-Reply-To: <3B5EE0EC.7B45F328@bank-banque-canada.ca>

On Wed, 25 Jul 2001, Paul Gilbert wrote:

> Making a typo in the last help response I noticed:
>
> a <- t(matrix(c(0.3249816, 1.184596, 1.0408749,
>    1.4722996, 1.408512, 0.3768964,
>    1.2737683, 1.811588, 1.9108336,
>    1.8235127, 1.260909, 1.5995097 ), 3,4))
>
> > dim(a[a[,1]<0,, drop=F])
> [1] 0 3
>
> Is that right? In Splus 3.3 I get
>
> > dim(a[a[,1]<0,, drop=F])
> NULL

Really?  Current versions of S-PLUS behave like R, and I'd be surprised if
a 1994 version was different, but of course do not have it running.
I did check 3.4, though, and that behaves as 2000, 6.0 and R do.

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

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