22 #ifndef Rcpp__sugar__unique_h
23 #define Rcpp__sugar__unique_h
28 template <
typename HASH>
36 return hash.contains(value) ;
43 template <
int RTYPE,
typename TABLE_T>
64 template <
int RTYPE,
bool NA,
typename T>
71 template <
int RTYPE,
bool NA,
typename T>
73 return unique<RTYPE,NA,T>( t ).sort(decreasing) ;
76 template <
int RTYPE,
bool NA,
typename T,
bool RHS_NA,
typename RHS_T>
int operator()(STORAGE value)
sugar::IndexHash< RTYPE > HASH
LogicalVector get(const T &x) const
Vector< RTYPE > keys() const
LogicalVector in(const VectorBase< RTYPE, NA, T > &x, const VectorBase< RTYPE, RHS_NA, RHS_T > &table)
Vector< LGLSXP > LogicalVector
Vector< RTYPE > unique(const VectorBase< RTYPE, NA, T > &t)
IntegerVector table(const VectorBase< RTYPE, NA, T > &x)
Vector< RTYPE > sort_unique(const VectorBase< RTYPE, NA, T > &t, bool decreasing=false)