Re: [R] 'combinations' in gtools and stack overflow

2005-02-14 Thread Prof Brian Ripley
On Mon, 14 Feb 2005, Ho-Joon Lee wrote: Dear R-users, Let me ask about the 'stack overflow' error which I got when I used the function 'combinations' in gtools. The following is what I did: - library(gtools) options(expressions=1e5) combinations(500, 3, 1:500) # or combinations(400, 2,

RE: [R] 'combinations' in gtools and stack overflow

2005-02-14 Thread Warnes, Gregory R
Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Prof Brian Ripley Sent: Monday, February 14, 2005 10:23 AM To: Ho-Joon Lee Cc: r-help@stat.math.ethz.ch Subject: Re: [R] 'combinations' in gtools and stack overflow On Mon, 14 Feb 2005, Ho-Joon Lee wrote: Dear

RE: [R] 'combinations' in gtools and stack overflow

2005-02-14 Thread davidr
Subject: RE: [R] 'combinations' in gtools and stack overflow The documentation for 'combinations' explicitly describes this problem: Details: Caution: The number of combinations and permutations increases rapidly with 'n' and 'r'!. To use values of 'n' above about 45, you

Re: [R] 'combinations' in gtools and stack overflow

2005-02-14 Thread Ho-Joon Lee
Thank you for your replies, David and Brian. The function 'combn' in the package combinat works really fine without using any particular options. Thanks a lot again for referring me to the package, David. On the other hand, I do not know the meaning of stack overflow technically and am not

RE: [R] 'combinations' in gtools and stack overflow

2005-02-14 Thread Prof Brian Ripley
Of Prof Brian Ripley Sent: Monday, February 14, 2005 10:23 AM To: Ho-Joon Lee Cc: r-help@stat.math.ethz.ch Subject: Re: [R] 'combinations' in gtools and stack overflow On Mon, 14 Feb 2005, Ho-Joon Lee wrote: Dear R-users, Let me ask about the 'stack overflow' error which I got when I used the function

Re: [R] 'combinations' in gtools and stack overflow

2005-02-14 Thread Ho-Joon Lee
) dim(cmat) # 44850 by 2 -Greg -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Prof Brian Ripley Sent: Monday, February 14, 2005 10:23 AM To: Ho-Joon Lee Cc: r-help@stat.math.ethz.ch Subject: Re: [R] 'combinations' in gtools and stack overflow On Mon, 14