The first thing to notice is that: ?expand.grid might be useful... The second is that: allsubsets(30) will return you an object of 2^30 rows by 30 columns.... How big would an object like that be??? 4*(2^30)*30/(1024^3) = 120GB.... b
On Nov 30, 2007, at 11:17 AM, Hans Kestler wrote:
Hi,
I just installed the latest release (2.6.1) on Leopard (Mac Pro -
Quad-Core
Intel Xeon, 16Gb).
Calling :
allsubsets <- function (n)
+ {
+ if (n > 0)
+ rbind(cbind(TRUE, Recall(n - 1)), cbind(FALSE, Recall(n -1)))
+ }
a<-allsubsets(30)
I get the following error: Error: cannot allocate vector of size 1.5 Gb R(576,0xa04f8f60) malloc: *** mmap(size=1610616832) failed (error code=12) *** error: can't allocate region *** set a breakpoint in malloc_error_break to debug R(576,0xa04f8f60) malloc: *** mmap(size=1610616832) failed (error code=12) *** error: can't allocate region *** set a breakpoint in malloc_error_break to debug Any ideas? Thank you. Hans [[alternative HTML version deleted]]
_______________________________________________ R-SIG-Mac mailing list R-SIG-Mac at stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-mac
-------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2419 bytes Desc: not available Url : https://stat.ethz.ch/pipermail/r-sig-mac/attachments/20071202/68970a21/attachment.bin