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-CoreIntel 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 GbR(576,0xa04f8f60) malloc: *** mmap(size=1610616832) failed (error code=12)*** error: can't allocate region *** set a breakpoint in malloc_error_break to debugR(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 [email protected] https://stat.ethz.ch/mailman/listinfo/r-sig-mac
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ R-SIG-Mac mailing list [email protected] https://stat.ethz.ch/mailman/listinfo/r-sig-mac
