Skip to content
Prev 126368 / 398500 Next

data.frame's and [2, c(T, F)] in R 2.6.0

data-ploner.com wrote:
It looks unintentional, but it is not due to "mixed indexing":
Error in .subset2(xx, j) : attempt to select less than one element
a b
2 2 5

As far as I can tell, It happens only when drop=TRUE and exactly one
column is selected using a logical index.