Re: [R] Strange integer result on Debian/amd64

2007-03-21 Thread Dave Ewart
On Wednesday, 21.03.2007 at 14:07 +0800, Berwin A Turlach wrote: All help/suggestions/appreciated! The calculations are done in floating point arithmetic, not integer arithmetic. From the help page on `choose' one might already guess so much, but reading R-2.4.1/src/nmath/choose.c

Re: [R] Strange integer result on Debian/amd64

2007-03-21 Thread Dave Ewart
On Wednesday, 21.03.2007 at 09:10 +, Dave Ewart wrote: However, the underlying problem that gave rise to the difficulty was as follows. A colleague wishes to create a matrix, where one of the dimensions of the matrix is the result of the 'choose' function, i.e. mycols-choose(11,6)

Re: [R] Strange integer result on Debian/amd64

2007-03-21 Thread Prof Brian Ripley
On Wed, 21 Mar 2007, Dave Ewart wrote: On Wednesday, 21.03.2007 at 14:07 +0800, Berwin A Turlach wrote: All help/suggestions/appreciated! The calculations are done in floating point arithmetic, not integer arithmetic. From the help page on `choose' one might already guess so much, but

Re: [R] Strange integer result on Debian/amd64

2007-03-21 Thread Dave Ewart
On Wednesday, 21.03.2007 at 09:29 +, Prof Brian Ripley wrote: OK, I understand the problem now. I was wondering if it something along those lines, but initially dismissed that as a possibility since I expected 'choose' to be an integer calculation. It is not, because it would be far

[R] Strange integer result on Debian/amd64

2007-03-20 Thread Dave Ewart
Using the following version of R: R version 2.4.1 (2006-12-18) installed using apt-get on a Debian/Sarge AMD64 system with the following entry in /etc/apt/sources.lists: deb http://www.stats.bris.ac.uk/R/bin/linux/debian/ stable/ The problem: I'm seeing strange results in a integer

Re: [R] Strange integer result on Debian/amd64

2007-03-20 Thread Berwin A Turlach
G'day Dave, On Tue, 20 Mar 2007 14:59:38 + Dave Ewart [EMAIL PROTECTED] wrote: All help/suggestions/appreciated! The calculations are done in floating point arithmetic, not integer arithmetic. From the help page on `choose' one might already guess so much, but reading