[R] unlist kills R

Dimitris Rizopoulos dimitris.rizopoulos at med.kuleuven.ac.be
Wed Jan 5 10:21:19 CET 2005


Hi Manuel,

try the following:

A <- data.frame(matrix(1:21639744, nrow=3578, ncol=6048))
AA <- unlist(A, use.names=FALSE)

I hope it helps.

Best,
Dimitris

----
Dimitris Rizopoulos
Ph.D. Student
Biostatistical Centre
School of Public Health
Catholic University of Leuven

Address: Kapucijnenvoer 35, Leuven, Belgium
Tel: +32/16/336899
Fax: +32/16/337015
Web: http://www.med.kuleuven.ac.be/biostat
     http://www.student.kuleuven.ac.be/~m0390867/dimitris.htm



----- Original Message ----- 
From: "Manuel Gutierrez" <manuel_gutierrez_lopez at yahoo.es>
To: <r-help at stat.math.ethz.ch>
Sent: Wednesday, January 05, 2005 9:59 AM
Subject: [R] unlist kills R


> When I try to unlist a very large list, R is killed
> without any other warning:
> A<-as.list(as.data.frame(matrix(1:21639744,nrow=3578,ncol=6048)))
> with
> AA<-unlist(A)
> or
> AA<-c(A,recursive=TRUE)
> I get a
> R terminado (killed)
> and the end of the session.
> I think I'll need to get more RAM (now 1Gb, any other
> solutions welcomed) to be able to do this but,
> shouldn't I get a more gentle warning than the kill
> message?
> Thanks,
> Manuel
>
>
> platform i686-pc-linux-gnu
> arch     i686
> os       linux-gnu
> system   i686, linux-gnu
> status
> major    2
> minor    0.1
> year     2004
> month    11
> day      15
> language R
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! 
> http://www.R-project.org/posting-guide.html
>




More information about the R-help mailing list