From hpages at fhcrc.org  Fri Nov  3 05:10:22 2006
From: hpages at fhcrc.org (Herve Pages)
Date: Thu, 02 Nov 2006 20:10:22 -0800
Subject: [Rd] Display problem with named complex vectors
Message-ID: <454AC12E.4020002@fhcrc.org>

Hi,


> z <- (-1:3)+2i
> names(z) <- LETTERS[1:5]
> z
    A     B     C     D     E
-1+2i  0+2i  1+2i  2+2i  3+2i

Nice :-)

> names(z)[2] <- "long name"
> z
        A long name         C         D         E
-1+2i  0+2i  1+2i  2+2i  3+2i

Not nice :-(

This happens with R-2.4.0 and current R-devel.
It also happens with raw vectors as reported one month ago.


Cheers,
H.




[Rd] Display problem with named complex vectors
Herve Pages