you may try to increase virtual memory : http://windows.microsoft.com/en-us/windows/change-virtual-memory-size#1TC=windows-7 -----Original Message----- From: "eliza botto" [eliza_botto at hotmail.com] Date: 11/11/2014 02:35 PM To: "r-help at r-project.org" <r-help at r-project.org> Subject: [R] R memory issues Dear useRs, I have this funny thing going on with me since morning. I am 32 bit window 7 system with 4 GB RAM(2.95 usable). I tried to run a code on it but when I tried to convert dataframe to matrix by using the following code mat<-matrix(as.numeric(unlist(SFI)),nrow=nrow(SFI)) *where SFI is my dataframe. an error came up, "Error: cannot allocate vector of size 237.3 Mb" I tried to increase memory by using memory.limit(2500) but to no effect. Kindly help me out on it as you always do. Thanks, Eliza ______________________________________________ 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.
R memory issues
2 messages · ce, Brian Ripley
On 12/11/2014 15:18, ce wrote:
you may try to increase virtual memory : http://windows.microsoft.com/en-us/windows/change-virtual-memory-size#1TC=windows-7
That is a very low plausibility for the error. See the discussion in the FAQ: http://cran.r-project.org/bin/windows/base/rw-FAQ.html#There-seems-to-be-a-limit-on-the-memory-it-uses_0021 and the discussion of fragmentation in ?"Memory-limits" . As others have said: get a 64-bit OS -- the only 32-bit one I have seen for several years now is on an old Windows sub-notebook with an Atom CPU.
-----Original Message----- From: "eliza botto" [eliza_botto at hotmail.com] Date: 11/11/2014 02:35 PM To: "r-help at r-project.org" <r-help at r-project.org> Subject: [R] R memory issues Dear useRs, I have this funny thing going on with me since morning. I am 32 bit window 7 system with 4 GB RAM(2.95 usable). I tried to run a code on it but when I tried to convert dataframe to matrix by using the following code mat<-matrix(as.numeric(unlist(SFI)),nrow=nrow(SFI)) *where SFI is my dataframe. an error came up, "Error: cannot allocate vector of size 237.3 Mb" I tried to increase memory by using memory.limit(2500) but to no effect. Kindly help me out on it as you always do. Thanks, Eliza [[alternative HTML version deleted]]
Brian D. Ripley, ripley at stats.ox.ac.uk Emeritus Professor of Applied Statistics, University of Oxford 1 South Parks Road, Oxford OX1 3TG, UK