From ggrothendieck at gmail.com  Sat Aug  9 19:42:44 2008
From: ggrothendieck at gmail.com (Gabor Grothendieck)
Date: Sat, 9 Aug 2008 13:42:44 -0400
Subject: [Rd] matrix name
In-Reply-To: <489DC701.9090602@altk.com>
References: <489DC701.9090602@altk.com>
Message-ID: <971536df0808091042k6e5c9aa5h3dafe5cc72a6e762@mail.gmail.com>

Try this:

> matrix(1:9, 3, dim = list(x = letters[1:3], y = LETTERS[1:3]))
   y
x   A B C
  a 1 4 7
  b 2 5 8
  c 3 6 9


On Sat, Aug 9, 2008 at 12:34 PM, mel <mel at altk.com> wrote:
> Hello,
>
> Presently, we are able to add additionnal info to a matrix
> thanks to the nice comment() and attr() functions.
> Maybe I miss some other functions ?
>
> Since there is a always a little remaining place on the
> top left when one print a matrix,
> I was wondering if it won't be interesting to offer the
> possibility to show some information here,
>
> I'm thinking on something like :
>
>> attr(M, 'topleft') = 'city\prms';
>> M
> city\prms      a    b    c
> seattle        1    3    5
> vancouver      2    4    6
>
> I don't know if it's easily feasible and even if it seems
> interesting enough ... so sorry if it is a silly idea.
>
> All the best
> Vincent
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>



[Rd] matrix name
Gabor Grothendieck