Skip to content
Back to formatted view

Raw Message

Message-ID: <73f827b50901121732w37b2c759s6b483d2fecd6c2f3@mail.gmail.com>
Date: 2009-01-13T01:32:28Z
From: Gundala Viswanath
Subject: Can't Destroy Dim Names

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