[R] Can't Destroy Dim Names

Gundala Viswanath gundalav at gmail.com
Tue Jan 13 02:32:28 CET 2009


Dear all,

I have the following matrix:

> str(mat)
Named chr [1:32268] "yQAAA" "jQAAQ" "UQAAg" "FQAAw" "1QABA" ...
 - attr(*, "names")= chr [1:32268] "CAAAAAAAAA" "CAAAAAAAAC"
"CAAAAAAAAG" "CAAAAAAAAT" ...


I want to destroy the attribute yielding only this:

> str(mat)
Named chr [1:32268] "yQAAA" "jQAAQ" "UQAAg" "FQAAw" "1QABA" ...


But why this command fail to do it?

> dimnames(mat) <- NULL

Btw, the object size for keeping matrix with dim names is greater
than without, right?



- Gundala Viswanath
Jakarta - Indonesia




More information about the R-help mailing list