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@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.
______________________________________________
R-help@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.