Re: R-beta: Three-dimensional arrays

Kurt Hornik (Kurt.Hornik@ci.tuwien.ac.at)
Sun, 6 Apr 1997 17:43:57 +0200


Date: Sun, 6 Apr 1997 17:43:57 +0200
Message-Id: <199704061543.RAA28458@aragorn.ci.tuwien.ac.at>
From: Kurt Hornik <Kurt.Hornik@ci.tuwien.ac.at>
To: Arne Kovac <A.Kovac@Bristol.ac.uk>
Subject: Re: R-beta: Three-dimensional arrays
In-Reply-To: <Pine.GSO.3.95.970402142238.27926B-100000@hannan>

>>>>> Arne Kovac writes:

> I get a segmentation fault when I access labelled three-dimensional
> arrays:

>> new.array<-array((1:27),c(3,3,3))
>> new.array[,1,]
>      [,1] [,2] [,3]
> [1,]    1   10   19
> [2,]    2   11   20
> [3,]    3   12   21
>> label<-c("l1","l2","l3")                                                 
>> new.array<-array((1:27),c(3,3,3),list(label,label,label))
>> new.array[,1,]
> zsh: segmentation fault  R

> The same happens when I try to fix the first component with

>> new.array[1,,]
> zsh: segmentation fault  R

> The third component works:

>> new.array[,,1]
>    l1 l2 l3
> l1  1  4  7
> l2  2  5  8
> l3  3  6  9

This seems to be fixed in the 0.50 beta 6 prerelease.

0.50, anytime now ...

-kh
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=