From hpages at fhcrc.org  Wed Oct  4 05:58:54 2006
From: hpages at fhcrc.org (Herve Pages)
Date: Tue, 03 Oct 2006 20:58:54 -0700
Subject: [Rd] Display problem with named raw vectors
Message-ID: <4523317E.5030803@fhcrc.org>

Hi,


I found that displaying a raw vector with long names is not
as pretty as for other types of named vectors:

    > r <- charToRaw("Mz")
    > r
    [1] 4d 7a
    > names(r) <- c("M", "zzzzzz")
    > r
         M zzzzzz
    4d 7a

The names and the values are not aligned :-(

    > i <- as.integer(r)
    > i
    [1]  77 122
    > names(i) <- c("M", "zzzzzz")
    > i
         M zzzzzz
        77    122

Much better :-)
(Note that the names were lost during coercion... surprising
but documented.)

Cheers,
H.




[Rd] Display problem with named raw vectors
Herve Pages