On Tue, Nov 11, 2008 at 1:42 PM, Wacek Kusnierczyk <[EMAIL PROTECTED]> wrote: > hadley wickham 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? >> >> > > x = matrix(1,1,1) > dim(x) = c(1,1,1)
I think you meant dim(x) <- c(3, 1) You created a 1 x 1 x 1 array. Hadley -- http://had.co.nz/ ______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel