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]]
On 11.11.2014 20:32, eliza botto wrote:> 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.So there is no memory left. Clean uo, use a 64-bit OS, ...... Best, Uwe Ligges> Kindly help me out on it as you always do. > Thanks, > Eliza > [[alternative HTML version deleted]] > > ______________________________________________ > 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. >
The short answer is "get a bigger computer or find a way to do the computation using less memory". Best, Ists On Nov 11, 2014 2:34 PM, "eliza botto" <eliza_botto at hotmail.com> wrote:> 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]] > > ______________________________________________ > 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. >[[alternative HTML version deleted]]