Skip to content
Prev 131146 / 398506 Next

Putting a NULL in a list (as cannot pass NA to C++)

On Mon, 3 Dec 2007, Rees, David wrote:

            
Is this what you were looking for?


Writing R Extensions

6.4 Missing and IEEE special values

A set of functions is provided to test for NA, Inf, -Inf and NaN. These 
functions are accessed via macros:

      ISNA(x)        True for R's NA only
      ISNAN(x)       True for R's NA and IEEE NaN
      R_FINITE(x)    False for Inf, -Inf, NA, NaN

HTH,

Chuck

p.s. grep '<something>' within R's include directory can quickly resolve 
questions like this.
Charles C. Berry                            (858) 534-2098
                                             Dept of Family/Preventive Medicine
E mailto:cberry at tajo.ucsd.edu	            UC San Diego
http://famprevmed.ucsd.edu/faculty/cberry/  La Jolla, San Diego 92093-0901