From ripley at stats.ox.ac.uk  Wed Mar 24 14:46:40 2010
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Wed, 24 Mar 2010 13:46:40 +0000 (GMT)
Subject: [Rd] code allowing NA
In-Reply-To: <4BAA0C5E.2030206@stats.uwo.ca>
References: <FEFD7FDD74F6044AA1F906AE2909B5AD1CAF55080B@CBMCC-X7-MBX07.ad.cibc.com>
	<4BAA0C5E.2030206@stats.uwo.ca>
Message-ID: <alpine.LFD.2.00.1003241342350.16164@gannet.stats.ox.ac.uk>

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-project.org/R/trunk/src/main/arithmetic.c
>
> in particular around lines 110 and 160.

And for completeness, lines 1106-8 of names.c (there are 4 types of NA 
in R, and NA_character_ is in a different file).

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



[Rd] code allowing NA
Prof Brian Ripley