[Rcpp-devel] passing NA from C++ to R

Dirk Eddelbuettel edd at debian.org
Tue Feb 8 00:12:50 CET 2011


On 7 February 2011 at 17:50, WEI ZHANG wrote:
| I figured I can actually use NA_LOGICAL, NA_INTEGER , NA_REAL...

NA_LOGICAL and NA_INTEGER are R-only so you can't interchange with other
code.  NA_REAL, and the +/- Inf values conform to an IEEE standard so you are
likely to have better luck with those... 

Dirk

-- 
Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com


More information about the Rcpp-devel mailing list