Re: [R] Possible bug in is.na.data.frame(): input without columns

2012-06-25 Thread Mikko Korpela
On 06/20/2012 05:36 PM, Mikko Korpela wrote: > Hello list! > > Let's construct a matrix / data.frame with 0 columns, but > 0 rows, and > non-NULL rownames. Then, call is.na() on both the data.frame and the > matrix. We find that is.na.data.frame() gives an error. When row.names > are removed, is.n

[R] Possible bug in is.na.data.frame(): input without columns

2012-06-20 Thread Mikko Korpela
Hello list! Let's construct a matrix / data.frame with 0 columns, but > 0 rows, and non-NULL rownames. Then, call is.na() on both the data.frame and the matrix. We find that is.na.data.frame() gives an error. When row.names are removed, is.na.data.frame() returns NULL. I think that the NULL result