Re: [O] [0][babel][R] Undesired conversion of integers to floats in R code block output

2012-02-20 Thread Achim Gratz
Achim Gratz writes: >>> On my 32-bit Arch machine: >>> (string-to-number "123456789"): 123456789 (#o726746425, #x75bcd15) >>> (string-to-number "987654321"): 987654321.0 > > Since that latter number is not representable as an integer in Emacs (it > loses 4 bit due to the way Lisp represents these

Re: [O] [0][babel][R] Undesired conversion of integers to floats in R code block output

2012-02-19 Thread Achim Gratz
Eric Schulte writes: >> >> A further followup, at the risk of descending into minutia. The >> culprit seems to be the emacs function string-to-number. >> >> On my 32-bit Arch machine: >> (string-to-number "123456789"): 123456789 (#o726746425, #x75bcd15) >> (string-to-number "987654321"): 9876543

Re: [O] [0][babel][R] Undesired conversion of integers to floats in R code block output

2012-02-19 Thread Daniel Drake
On Sun 19 Feb 2012 12:46:15 PM PST, Eric Schulte wrote: A further followup, at the risk of descending into minutia. The culprit seems to be the emacs function string-to-number. On my 32-bit Arch machine: (string-to-number "123456789"): 123456789 (#o726746425, #x75bcd15) (string-to-number "9876

Re: [O] [0][babel][R] Undesired conversion of integers to floats in R code block output

2012-02-19 Thread Eric Schulte
> > A further followup, at the risk of descending into minutia. The > culprit seems to be the emacs function string-to-number. > > On my 32-bit Arch machine: > (string-to-number "123456789"): 123456789 (#o726746425, #x75bcd15) > (string-to-number "987654321"): 987654321.0 > GNU Emacs 23.4.1 (i686-

Re: [O] [0][babel][R] Undesired conversion of integers to floats in R code block output

2012-02-19 Thread Daniel Drake
On 02/19/2012 10:28 AM, Daniel Drake wrote: On 02/19/2012 09:40 AM, Daniel Drake wrote: On 02/19/2012 08:48 AM, Eric Schulte wrote: Just to be safe, I nuked my org-mode directory and re-cloned from the git repository: I'm now at release_7.8.03.386.g2239d (I was at release_7.8.03-351-g47eb3 prev

Re: [O] [0][babel][R] Undesired conversion of integers to floats in R code block output

2012-02-19 Thread Daniel Drake
On 02/19/2012 09:40 AM, Daniel Drake wrote: On 02/19/2012 08:48 AM, Eric Schulte wrote: Just to be safe, I nuked my org-mode directory and re-cloned from the git repository: I'm now at release_7.8.03.386.g2239d (I was at release_7.8.03-351-g47eb3 previously). Is there a more recent version? I al

Re: [O] [0][babel][R] Undesired conversion of integers to floats in R code block output

2012-02-19 Thread Daniel Drake
On 02/19/2012 08:48 AM, Eric Schulte wrote: Just to be safe, I nuked my org-mode directory and re-cloned from the git repository: I'm now at release_7.8.03.386.g2239d (I was at release_7.8.03-351-g47eb3 previously). Is there a more recent version? I also removed the org directory that came with

Re: [O] [0][babel][R] Undesired conversion of integers to floats in R code block output

2012-02-19 Thread Eric Schulte
> Just to be safe, I nuked my org-mode directory and re-cloned from the > git repository: I'm now at release_7.8.03.386.g2239d (I was at > release_7.8.03-351-g47eb3 previously). Is there a more recent > version? I also removed the org directory that came with the packaged > version of emacs, just

Re: [O] [0][babel][R] Undesired conversion of integers to floats in R code block output

2012-02-18 Thread Daniel Drake
On 02/18/2012 08:23 AM, Eric Schulte wrote: Daniel Drake writes: Hi All, I'm using R in org-mode/babel to analyze data from a psychological study. The subjects in this study are identified by nine digit integers (e.g., 987654321) that I treat as strings (or factors) in my R data frames. Tab

Re: [O] [0][babel][R] Undesired conversion of integers to floats in R code block output

2012-02-18 Thread Eric Schulte
Daniel Drake writes: > Hi All, > > I'm using R in org-mode/babel to analyze data from a psychological > study. The subjects in this study are identified by nine digit integers > (e.g., 987654321) that I treat as strings (or factors) in my R data > frames. > > Tables output by an R code block tha

[O] [0][babel][R] Undesired conversion of integers to floats in R code block output

2012-02-16 Thread Daniel Drake
Hi All, I'm using R in org-mode/babel to analyze data from a psychological study. The subjects in this study are identified by nine digit integers (e.g., 987654321) that I treat as strings (or factors) in my R data frames. Tables output by an R code block that contain these subject IDs are not