> That's confusing! In what situations is x a matrix but does not have > a dim attribute?
That was my point. I don't find it logical that is.matrix(a) gives FALSE but is.matrix(t( t(a) )) gives TRUE. I also think it would be more logical that a=c(1,1,2) dim(a) gives 3 1 instead of NULL, Daniel On Tue, Nov 11, 2008 at 8:21 PM, hadley wickham <[EMAIL PROTECTED]> wrote: >> | is.matrix| returns |TRUE| if |x| is a matrix and has a |dim <dim.html>| >> attribute of length 2) and |FALSE| otherwise > > That's confusing! In what situations is x a matrix but does not have > a dim attribute? > > Hadley > > -- > http://had.co.nz/ > > ______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel