Message-ID: <4523317E.5030803@fhcrc.org>
Date: 2006-10-04T03:58:54Z
From: Hervé Pagès
Subject: Display problem with named raw vectors
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.