| 26 | |
| 27 | template <int RTYPE, bool NA, typename T> |
| 28 | inline LogicalVector duplicated( const VectorBase<RTYPE,NA,T>& x ){ |
| 29 | Vector<RTYPE> vec(x) ; |
| 30 | sugar::IndexHash<RTYPE> hash(vec) ; |
| 31 | return hash.fill_and_get_duplicated() ; |
| 32 | } |
| 33 | |
| 34 | |
| 35 | } // Rcpp |
no test coverage detected