[Rd] is.matrix

Daniel Høyer Iversen danielho at stud.ntnu.no
Tue Nov 11 19:20:08 CET 2008


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.



More information about the R-devel mailing list