Re: [Rd] print(big+small*1i) -> big + 0i

2010-03-24 Thread Prof Brian Ripley
On Wed, 24 Mar 2010, William Dunlap wrote: Should both parts of a complex number be printed to the same precision? The imaginary part of 0 looks a bit odd when log10(real/imag) >=~ getOption("digits"), but I'm not sure it is awful. Some people might expect the same number of significant digit

[Rd] print(big+small*1i) -> big + 0i

2010-03-24 Thread William Dunlap
Should both parts of a complex number be printed to the same precision? The imaginary part of 0 looks a bit odd when log10(real/imag) >=~ getOption("digits"), but I'm not sure it is awful. Some people might expect the same number of significant digits in the two parts. > 1e7+4i [1] 1000+0i

Re: [Rd] Fortran DLLs and R

2010-03-24 Thread Duncan Murdoch
On 24/03/2010 1:29 PM, jferr...@umces.edu wrote: Hi All, I'm writing R code that would benefit from doing certain tasks using compiled blocks of code, specifically Fortran subroutines of my own (already written, debugged in both Fortran77 and Fortran90). I am currently working on a Windows mach

[Rd] Fortran DLLs and R

2010-03-24 Thread jferrari
Hi All, I'm writing R code that would benefit from doing certain tasks using compiled blocks of code, specifically Fortran subroutines of my own (already written, debugged in both Fortran77 and Fortran90). I am currently working on a Windows machine using Lahey and/or MinGW(g77) compilers. It is

Re: [Rd] code allowing NA

2010-03-24 Thread Prof Brian Ripley
On Wed, 24 Mar 2010, Duncan Murdoch wrote: On 23/03/2010 1:28 PM, Bond, Stephen wrote: Dear R developers, Could you, please, point me to the source file containing the implementation of NA values? I have a feeling this isn't what you want, but what you asked for is in https://svn.r-projec

Re: [Rd] code allowing NA

2010-03-24 Thread Duncan Murdoch
On 23/03/2010 1:28 PM, Bond, Stephen wrote: Dear R developers, Could you, please, point me to the source file containing the implementation of NA values? I have a feeling this isn't what you want, but what you asked for is in https://svn.r-project.org/R/trunk/src/main/arithmetic.c in parti