> | 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/