R-beta: Three-dimensional arrays

Kurt Hornik Kurt.Hornik at ci.tuwien.ac.at
Sun Apr 6 17:43:57 CEST 1997


>>>>> 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 at stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=



More information about the R-help mailing list