[Rcpp-devel] passing NA from C++ to R
djsamperi at gmail.com
Mon Feb 7 23:49:41 CET 2011
I sent you an overly complicated reply. Take a look
at R/include/R_ext/Arith.h where REAL_NA is defined...
On Mon, Feb 7, 2011 at 5:33 PM, Dominick Samperi <djsamperi at gmail.com> wrote:
> R has its own way of representing NA's. See, for example, the fts
> package at CRAN,
> in particular, the file src/tslib/tslib/utils/numeric.traits.hpp.
> On Mon, Feb 7, 2011 at 5:23 PM, WEI ZHANG <aweizhang at gmail.com> wrote:
>> I would like to know how can I pass NA from C++ to R.
>> For example, for any integer in C++ , if == -999, I would like to set to NA
>> to pass to R.
>> Rcpp-devel mailing list
>> Rcpp-devel at lists.r-forge.r-project.org
More information about the Rcpp-devel