[Rd] empty drop=F in [

Paul Gilbert pgilbert@bank-banque-canada.ca
Wed, 25 Jul 2001 11:08:28 -0400


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

Paul Gilbert
using
> version
         _
platform sparc-sun-solaris2.6
arch     sparc
os       solaris2.6
system   sparc, solaris2.6
status   Patched
major    1
minor    3.0
year     2001
month    07
day      22
language R


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