Re: [Rd] is.matrix

2008-11-11 Thread Daniel Høyer Iversen
> 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, Danie

[Rd] is.matrix

2008-11-11 Thread Daniel Høyer Iversen
a=c(1,1,2); is.matrix(a) gives FALSE is.matrix(t(a)) gives TRUE is.matrix(t(t(a))) gives TRUE Is this correct? Shouldn't all give FALSE? I think is.matrix should give FALSE when dimension is 1*n or n*1. __ R-devel@r-project.org mailing list https://stat