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,
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
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
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
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
)
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