Skip to content

Destroying Attributes of a Matrix

2 messages · Gundala Viswanath, Erik Iverson

#
Dear all,

I have the following structure of a matrix
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:
num [1:32268, 1:10] 0 0 0 0 0 0 0 0 0 0 ...


- Gundala Viswanath
Jakarta - Indonesia
#
In this case, how about?

dimnames(mdat) <- NULL
Gundala Viswanath wrote: