Thank you!
It's clear now. I was not looking at the real source code, but at the
code you get from the print method (that is by simply typing combn
at the prompt), which has all the comments removed. Next time I'll
take my time looking for the real source code ;)
Thanks again,
Giampiero
On Fri,
Dear Giampiero,
> storage.mode(1)
[1] "double"
> storage.mode(1:1)
[1] "integer"
as.integer(1) would perhaps be the more pedagogical way to program this.
Best wishes
Wolfgang
--
Wolfgang Huber EBI/EMBL Cambridge UK http://www
> "Giampiero" == Giampiero Salvi <[EMAIL PROTECTED]>
> on Fri, 19 Jan 2007 14:21:24 +0100 (CET) writes:
Giampiero> Hi,
Giampiero> I was checking the source code to the function combn that
"generates
Giampiero> all combinations of the elements of 'x' taken 'm' at a time.",
Hi,
I was checking the source code to the function combn that "generates
all combinations of the elements of 'x' taken 'm' at a time.",
because I wished to modify it. I have a doubt about a statement.
This is the main loop.
._1 <- 1:1
nmmp1 <- n - m + ._1
while (a[1] != nmmp1) {