[R] out of memory?

Martin Maechler maechler at stat.math.ethz.ch
Fri Mar 23 10:43:23 CET 2001


>>>>> "PD" == Peter Dalgaard BSA <p.dalgaard at biostat.ku.dk> writes:

    PD> "Valery A.Khamenya" <news_vkhamenya at chat.ru> writes:
    >> Hello Peter,
    >> 
    >> Thursday, March 22, 2001, 2:38:48 PM, you wrote:
    >> 
    >> 
    PDB> (If there is a bug, it is in array() not complaining when its
    PDB> data= argument is getting truncated).
    >>  did you refered to following bug:
    >> 
    >> #-----------------
    >> > "+"(1:3,10:11)
    >> [1] 11 13 13
    >> Warning message: 
    >> longer object length
    >>         is not a multiple of shorter object length in: 1:3 + 10:11 
    >> > log(1:3,10:11)
    >> [1] 0.0000000 0.2890648 0.4771213
    >> > 
    >> #-----------------
    >> 
    >> which plays its role in
    >> 
    >> #...
    >> robj <- array(FUN(X, Y, ...), c(dX, dY))
    >> #...
    >> 
    >> of outer source?

    PD> No, this one
    PD> > array(1:12,c(2,3))
    PD>      [,1] [,2] [,3]
    PD> [1,]    1    3    5
    PD> [2,]    2    4    6
    PD> >

    PD> One might have expected a warning that the array isn't big enough
    PD> to hold the data, but the behaviour *is* compatible with Splus
    PD> 3.4....

and Splus 5.1, and in S+ its even a documented feature...

Martin
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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