[R] Destroying Attributes of a Matrix

Gundala Viswanath gundalav at gmail.com
Wed Jan 7 04:46:18 CET 2009


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


- Gundala Viswanath
Jakarta - Indonesia




More information about the R-help mailing list