Skip to content
Prev 243531 / 398500 Next

Can't Destroy Dim Names

Does this help?
Named num [1:3] 1 2 3
  - attr(*, "names")= chr [1:3] "one" "two" "three"
num [1:3] 1 2 3

For a matrix called mat, you'd need to use

dimnames(mat) = NULL

to remove the dimnames.

But remember that, other than when you're displaying the
object, the names or dimnames should not affect anything
you do with the object, and they do allow you to index
elements by name instead of number.

 					- Phil Spector
 					 Statistical Computing Facility
 					 Department of Statistics
 					 UC Berkeley
 					 spector at stat.berkeley.edu
On Tue, 30 Nov 2010, clangkamp wrote: