From maechler at stat.math.ethz.ch  Tue Oct  6 10:10:25 2009
From: maechler at stat.math.ethz.ch (maechler at stat.math.ethz.ch)
Date: Tue,  6 Oct 2009 10:10:25 +0200 (CEST)
Subject: [Rd] str() gives odd looking output on complex vectors that are
	not purely imaginary (PR#13985)
Message-ID: <20091006081025.C65A52830317@mail.pubhealth.ku.dk>

>>>>> "RC" == Rich Calaway <richcalaway at revolution-computing.com>
>>>>>     on Tue,  6 Oct 2009 01:00:10 +0200 (CEST) writes:

    RC> Full_Name: Rich Calaway
    RC> Version: R 2.9.2
    RC> OS: Windows Vista
    RC> Submission from: (NULL) (65.47.30.18)


    RC> Try this:

    RC> x <- rnorm(25)
    RC> y <- rnorm(25)*1i
    RC> z <- x+y
    RC> str(z)
    RC> str(y)

    RC> When I try this, I see the following:

    >> str(z)
    RC> cplx [1:25] 0.0102+ 0.9463-1 -1.1111+ ...
    >> str(y)
    RC> cplx [1:25] 0+0.0975i 0-1.5060i 0+0.4071i ...

    RC> I see this in 2.9.2 and in the alpha build of 2.10.0:

Thank you, Rich.

That is indeed a bug in  prettyNum(*, drop0trailing=TRUE)
which I will fix  ASAP.

Martin



[Rd] str() gives odd looking output on complex vectors that are not purely imaginary (PR#13985)
maechler at stat.math.ethz.ch