23 #ifndef Rcpp__traits_is_na_h
24 #define Rcpp__traits_is_na_h
38 return x == NA_INTEGER;
48 return R_isnancpp(x.r) || R_isnancpp(x.i);
53 return x == NA_STRING;
58 return x == NA_LOGICAL;
bool is_na(typename storage_type< RTYPE >::type)
bool is_na< STRSXP >(SEXP x)
bool is_na< INTSXP >(int x)
bool is_na< REALSXP >(double x)
bool is_na< LGLSXP >(int x)
bool is_na< CPLXSXP >(Rcomplex x)