Article View: aus.stats.s
Article #16145Re: NaNs in S
From: Rod Ball
Date: Sun, 19 Jan 1992 22:00
Date: Sun, 19 Jan 1992 22:00
20 lines
1391 bytes
1391 bytes
Gary Houston <ghouston@stats.govt.nz> writes: >On further reflection I have realized that my missing value >problem was not well specified. Assuming the use of the >IEEE 754-1985 standard, it is relatively easy to >make a missing value in C and pass it back to S using the >NAOK=T option: any of NaN values in C (i.e., any number starting >with 0x7FF) will be converted by S to NA. Therefore, the >1/a - 1/a trick works. Note : The result of passing an NaN from C back to S is again an NaN; it is not "converted by S to NA". The S functions is.na() and is.nan() will both return T for values created from IEEE undefined arithmetic operations. Rod Ball email : rod@marcam.dsir.govt.nz DSIR Applied Maths phone : 64-9-893-660 Ext. 6709 P.B. Auckland fax : 64-9-863-330 New Zealand D
Technical Details
Message-ID:
<9201192130.AA00273@kahu.marcam.dsir.govt.nz>Path:
arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!uniwa!dmsperth!dmssyd.syd.dms.CSIRO.AU!newsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa931,7285bbe149b40edc X-Google-Attributes: gidfa931,public X-Google-ArrivalTime: 1992-01-19 14:18:47 PST Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!uniwa!dmsperth!dmssyd.syd.dms.CSIRO.AU!news From: rod@tui.marcam.dsir.govt.nz (Rod Ball) Newsgroups: aus.stats.s Subject: Re: NaNs in S Message-ID: <9201192130.AA00273@kahu.marcam.dsir.govt.nz> Date: 19 Jan 92 22:00:33 GMT Sender: daemon@syd.dms.CSIRO.AU Organization: CSIRO Div. Maths & Stats, CSIRO Div. Applied Physics Lines: 19 X-Gateway: dmssyd.syd.dms.CSIRO.AU