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]]

______________________________________________
[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
and provide commented, minimal, self-contained, reproducible code.

Reply via email to