Re: [Rd] Should as.complex(NaN) -> NA?

2015-09-22 Thread Martin Maechler
> William Dunlap > on Wed, 31 Mar 2010 12:04:42 -0700 writes: > I'm having trouble grokking complex NaN's. This first set > examples using complex(re=NaN,im=NaN) give what I expect >> Re(complex(re=NaN, im=NaN)) > [1] NaN >>

[Rd] Should as.complex(NaN) - NA?

2010-03-31 Thread William Dunlap
I'm having trouble grokking complex NaN's. This first set examples using complex(re=NaN,im=NaN) give what I expect Re(complex(re=NaN, im=NaN)) [1] NaN Im(complex(re=NaN, im=NaN)) [1] NaN Arg(complex(re=NaN, im=NaN)) [1] NaN Mod(complex(re=NaN, im=NaN)) [1] NaN

Re: [Rd] Should as.complex(NaN) - NA?

2010-03-31 Thread Charles C. Berry
On Wed, 31 Mar 2010, William Dunlap wrote: I'm having trouble grokking complex NaN's. This first set examples using complex(re=NaN,im=NaN) give what I expect Re(complex(re=NaN, im=NaN)) [1] NaN Im(complex(re=NaN, im=NaN)) [1] NaN Arg(complex(re=NaN, im=NaN)) [1] NaN