MCPcopy Create free account
hub / github.com/RcppCore/Rcpp / duplicated

Function duplicated

inst/include/Rcpp/sugar/functions/duplicated.h:28–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26
27template <int RTYPE, bool NA, typename T>
28inline 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

Callers 1

runit_duplicatedFunction · 0.85

Calls 1

Tested by

no test coverage detected