From ligges at statistik.uni-dortmund.de  Sun Oct 14 17:36:06 2007
From: ligges at statistik.uni-dortmund.de (Uwe Ligges)
Date: Sun, 14 Oct 2007 17:36:06 +0200
Subject: [Rd] bug (?) in [.data.frame with matrix-like indexing
Message-ID: <47123766.2060308@statistik.uni-dortmund.de>

Consider in R-2.6.0 (also R-patched from yesterday):

iris[1, c(TRUE, FALSE, FALSE, FALSE, FALSE)]
##  Error in .subset2(xx, j) : recursive indexing failed at level 2

iris[1, c(FALSE, FALSE, FALSE, FALSE, TRUE)]
## Error in .subset2(xx, j) : attempt to select less than one element

i.e. matrix-like indexing on data.frames, one logically-indexed 
dimension with only one value TRUE in it.

It is not documented to work, but it did so in former versions of R.
Is it a bug or withdrawn support?


Uwe Ligges



[Rd] bug (?) in [.data.frame with matrix-like indexing
Uwe Ligges