On 5/4/06, r user <[EMAIL PROTECTED]> wrote:
> I have many very large dataframes with 20 columns
> each.
>
> In order to conserve memory, I wish to separate the

I don't think that that will save any memory.

> iris2 <- iris
> gc()
         used (Mb) gc trigger (Mb) max used (Mb)
Ncells 169178  4.6     350000  9.4   350000  9.4
Vcells  63343  0.5     786432  6.0   290042  2.3
> for(i in 1:ncol(iris)) assign(paste("iris", i, sep = "."), iris2[,i])
> rm(iris2)
> gc()
         used (Mb) gc trigger (Mb) max used (Mb)
Ncells 169961  4.6     350000  9.4   350000  9.4
Vcells  64101  0.5     786432  6.0   290042  2.3

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to