22#ifndef Rcpp__sugar__na_omit_h
23#define Rcpp__sugar__na_omit_h
28 template <
int RTYPE,
bool NA,
typename T>
33 if(
n_out == n )
return x ;
43 template <
int RTYPE,
bool NA,
typename T>
48 if(
n_out == n )
return x;
74template <
int RTYPE,
bool NA,
typename T>
76 return sugar::na_omit_impl<RTYPE,NA,T>(
AttributeProxy attr(const std::string &name)
Vector< RTYPE > na_omit_impl(const T &x, Rcpp::traits::false_type)
sugar::IsNa< RTYPE, NA, T > is_na(const Rcpp::VectorBase< RTYPE, NA, T > &t)
no_init_vector no_init(R_xlen_t size)
Vector< RTYPE > na_omit(const VectorBase< RTYPE, NA, T > &t)
sugar::Sum< INTSXP, NA, T > sum(const VectorBase< INTSXP, NA, T > &t)