[R] Memory exceeding for split

From: Eduardo Dutra de Armas <eduarmasrs_at_yahoo.com.br>
Date: Tue 25 Jul 2006 - 03:37:22 EST

Hi R-users
I'm working with a data.frame of 40000 x 10, for which I need to apply the "split" function. The result is very long and cannot be stored in a variable due to memory exceeding. I've tried to send the result directly to a file through sink(filename) function, but the problem still occurs. Does anyone have an idea to solve this issue?  

> dim(dados)

[1] 40000 10
> sink("d:/points.dta")
> split(data,

list(data$Easting,data$Northing,data$Depth,data$Media,data$Type), drop=T) Error: cannot allocate vector of size 1334208 Kb In addition: Warning messages:
1: Reached total allocation of 125Mb: see help(memory.size) 2: Reached total allocation of 125Mb: see help(memory.size)

Best Regards,

Eng. Agr., M.Sc. Eduardo Dutra de Armas

Centro de Energia Nuclear na Agricultura (CENA/USP) Laboratório de Ecotoxicologia
Av.Centenário 303, C.P. 96, CEP 13400-970 Piracicaba, SP, Brasil - Fone: (55-19)34294761 - Fax: (55-19)34294610 (Áreas de atuação: Poluição de solo e água, Dinâmica Ambiental de pesticidas, Biodegradação, Microbiologia Ambiental)

        [[alternative HTML version deleted]]

R-help@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 and provide commented, minimal, self-contained, reproducible code. Received on Tue Jul 25 04:12:08 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Tue 25 Jul 2006 - 08:19:58 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.