Re: [Rcpp-devel] NA in templates

2015-09-08 Thread Romain Francois
You can use T::get_na() Romain > Le 9 sept. 2015 à 08:24, Rguy a écrit : > > What is correct way to represent NA in a template? I have been successfully > using NA_REAL (see example below) but I am not sure if this is the proper > method. > Thanks. > > /* template_NA.cpp: > Experiment with

[Rcpp-devel] NA in templates

2015-09-08 Thread Rguy
What is correct way to represent NA in a template? I have been successfully using NA_REAL (see example below) but I am not sure if this is the proper method. Thanks. /* template_NA.cpp: Experiment with use of NA in templates in Rcpp. Change first member of a vector to NA. */ #include using names