[R] Memory limit in Aggregate()
peter dalgaard
pdalgd at gmail.com
Tue Aug 2 18:26:01 CEST 2011
On Aug 2, 2011, at 17:10 , Guillaume wrote:
> Hi Peter,
> Thanks for your answer.
> I made a mistake in the script I copied.... sorry !
>
> The description of the object : listX has 3 column, listBy has 4 column, and
So what is the contents of listBy? If they are all factors with 100 levels, then you're looking at a table with 10^8 entries...
> they have 9000 rows :
>
> print(paste("ncol x ", length((listX))))
> print(paste("ncol By ", length((listBy))))
> print(paste("nrow ", length((listX[[1]]))))
>
> [1];"ncol x 3"
> [1];"ncol By 4"
> [1];"nrow 9083"
>
> It seems the "large" (=4) number of columns in listBy creates the
> troubles...
>
> Thanks,
> Guillaume
>
> --
> View this message in context: http://r.789695.n4.nabble.com/Memory-limit-in-Aggregate-tp3711819p3712671.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
--
Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Email: pd.mes at cbs.dk Priv: PDalgd at gmail.com
"Døden skal tape!" --- Nordahl Grieg
More information about the R-help
mailing list