[Rd] changing dimnames of a matrix with rownames/colnames causes (PR#809)

David.Meyer@ci.tuwien.ac.at David.Meyer@ci.tuwien.ac.at
Wed, 10 Jan 2001 13:25:01 +0100 (MET)


When I try to change the dimnames of a matrix x with named dimensions

   Y
X   1 2 3 4
  2 1 1 1 1
  3 1 1 1 1
  4 1 1 1 1


for example with:

rownames (x) <- c(...),

the dimension names (X and Y) are deleted, but when I use

dimnames(x)[[1]] <- c(...)

they are left unchanged.

Is this intentional ?

I'm using R 1.2.0 on debian linux.

> version
         _                
platform i686-pc-linux-gnu
arch     i686             
os       linux-gnu        
system   i686, linux-gnu  
status                    
major    1                
minor    2.0              
year     2000             
month    12               
day      15               
language R             

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._