Re: [Rd] Warning when indexing data.frame with FALSE

2006-07-31 Thread Peter Dalgaard
Prof Brian Ripley <[EMAIL PROTECTED]> writes: > On Mon, 31 Jul 2006, hadley wickham wrote: > > > Sorry, a better example is: > > > > > data.frame(a=1)[FALSE] > > NULL data frame with 1 rows > > > data.frame(a=1)[NULL] > > NULL data frame with 1 rows > > > > vs > > > > > data.frame()[FALSE] > >

Re: [Rd] Warning when indexing data.frame with FALSE

2006-07-31 Thread Prof Brian Ripley
On Mon, 31 Jul 2006, hadley wickham wrote: > Sorry, a better example is: > > > data.frame(a=1)[FALSE] > NULL data frame with 1 rows > > data.frame(a=1)[NULL] > NULL data frame with 1 rows > > vs > > > data.frame()[FALSE] > Warning in is.na(nm) : is.na() applied to non-(list or vector) > NULL da

Re: [Rd] Warning when indexing data.frame with FALSE

2006-07-31 Thread hadley wickham
Sorry, a better example is: > data.frame(a=1)[FALSE] NULL data frame with 1 rows > data.frame(a=1)[NULL] NULL data frame with 1 rows vs > data.frame()[FALSE] Warning in is.na(nm) : is.na() applied to non-(list or vector) NULL data frame with 0 rows > data.frame()[NULL] Warning in is.na(nm) : is.

[Rd] Warning when indexing data.frame with FALSE

2006-07-31 Thread hadley wickham
> data.frame()[] NULL data frame with 0 rows > data.frame()[FALSE] Warning in is.na(nm) : is.na() applied to non-(list or vector) NULL data frame with 0 rows > data.frame()[NULL] Warning in is.na(nm) : is.na() applied to non-(list or vector) NULL data frame with 0 rows Is this a bug? I wouldn't h