Skip to content
Back to formatted view

Raw Message

Message-ID: <433BBB8B.5090305@7d4.com>
Date: 2005-09-29T10:01:47Z
From: vincent@7d4.com
Subject: is it possible to form matrix of matrices...and multiple arrays
In-Reply-To: <Pine.LNX.4.61.0509290955240.13451@gannet.stats>

Prof Brian Ripley a ??crit :

> On Thu, 29 Sep 2005 vincent at 7d4.com wrote:
>> I don't think you can use matrix() to store other matrix() inside.
>> But array() is a solution to store matrix() inside.
>> (At least I have use it).
> 
> You _can_ do this with matrix() (although that was not quite what was 
> asked). Try
> a <- b <- c <- d <- matrix(1:4, 2, 2)
> e <- matrix(list(a,b,c,d), 2,2)

sorry for the wrong answer, and thanks for the correction.
(I certainly do not use list() as much as it should be.)