[R] Destroying Attributes of a Matrix
Erik Iverson
iverson at biostat.wisc.edu
Wed Jan 7 05:12:28 CET 2009
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 simply
> gives:
>
>> str(mdat)
> num [1:32268, 1:10] 0 0 0 0 0 0 0 0 0 0 ...
>
>
> - Gundala Viswanath
> Jakarta - Indonesia
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help
mailing list