Re: [R] Destroying Attributes of a Matrix

2009-01-06 Thread Erik Iverson
In this case, how about? dimnames(mdat) <- NULL Gundala Viswanath wrote: Dear all, I have the following structure of a matrix str(mdat) num [1:32268, 1:10] 0 0 0 0 0 0 0 0 0 0 ... - attr(*, "dimnames")=List of 2 ..$ : NULL ..$ : NULL How can I destroy the attributes such that it simp

[R] Destroying Attributes of a Matrix

2009-01-06 Thread Gundala Viswanath
Dear all, I have the following structure of a matrix > str(mdat) num [1:32268, 1:10] 0 0 0 0 0 0 0 0 0 0 ... - attr(*, "dimnames")=List of 2 ..$ : NULL ..$ : NULL How can I destroy the attributes such that it simply gives: > str(mdat) num [1:32268, 1:10] 0 0 0 0 0 0 0 0 0 0 ... - Gundal