[R] Help with Memory Problems (cannot allocate vector of size)

From: Amit Patel <amitrhelp_at_yahoo.co.uk>
Date: Wed, 18 May 2011 18:55:55 +0100 (BST)


While doing pls I found the following problem

> BHPLS1 <- plsr(GroupingList ~ PCIList, ncomp = 10, data = PLSdata, jackknife =
>FALSE, validation = "LOO")

when not enabling jackknife the command works fine, but when trying to enable jackknife i get the following error.

>BHPLS1 <- plsr(GroupingList ~ PCIList, ncomp = 10, data = PLSdata, jackknife =
>TRUE, validation = "LOO")

Error: cannot allocate vector of size 289.1 Mb

I am dealing with a very large dataset

>str(PLSdata)

'data.frame': 40 obs. of 2 variables:  $ GroupingList: int 1 1 1 1 1 1 1 1 1 1 ...  $ PCIList : AsIs [1:40, 1:94727] 0 0 0 0 0 0 0 0 0 0 ...

  ..- attr(*, "dimnames")=List of 2
  .. ..$ : chr  "X" "X.1" "X.12" "X.13" ...
  .. ..$ : NULL

>object.size(PLSdata)/1048600

28.9113560938394 bytes

How can i get around this memory shortage

        [[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. Received on Wed 18 May 2011 - 18:00:17 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 18 May 2011 - 22:00:07 GMT.

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

list of date sections of archive