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

2007-10-08 Thread data-ploner.com
On Oct 8, 2007, at 4:58 PM, Peter Dalgaard wrote: > data-ploner.com wrote: >> In R prior to 2.6.0 with matrizes as well as with data.frames it is >> possible to do: >> >> a[2, c(TRUE, FALSE)] >> >> In R 2.6.0 the mixed indexing works only for matrizes. Is this the >> intention, a bug, or did I get

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

2007-10-08 Thread Peter Dalgaard
data-ploner.com wrote: > On Oct 8, 2007, at 4:58 PM, Peter Dalgaard wrote: >> >> >> As far as I can tell, It happens only when drop=TRUE and exactly one >> column is selected using a logical index. > > Thank you. > Maybe it is better letting [] work as in previous R ... ? Well, presumably the code

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

2007-10-08 Thread Peter Dalgaard
data-ploner.com wrote: > In R prior to 2.6.0 with matrizes as well as with data.frames it is > possible to do: > > a[2, c(TRUE, FALSE)] > > In R 2.6.0 the mixed indexing works only for matrizes. Is this the > intention, a bug, or did I get something wrong? > Best regards > > Meinhard > > It

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

2007-10-08 Thread data-ploner.com
In R prior to 2.6.0 with matrizes as well as with data.frames it is possible to do: a[2, c(TRUE, FALSE)] In R 2.6.0 the mixed indexing works only for matrizes. Is this the intention, a bug, or did I get something wrong? Best regards Meinhard Meinhard Ploner Althingstrasse 15 39031 Brun