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

Peter Dalgaard P.Dalgaard at biostat.ku.dk
Mon Oct 8 17:20:43 CEST 2007


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 changed for a reason...

The log for the relevant revision has

"make DF[, 1] and DF[1:m, 1] consistent"


-- 
   O__  ---- Peter Dalgaard             Øster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)                  FAX: (+45) 35327907



More information about the R-help mailing list