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

Function match

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

Source from the content-addressed store, hash-verified

26
27template <int RTYPE, bool NA, typename T, bool RHS_NA, typename RHS_T>
28inline IntegerVector match( const VectorBase<RTYPE,NA,T>& x, const VectorBase<RTYPE,RHS_NA,RHS_T>& table_ ){
29 Vector<RTYPE> table = table_ ;
30 return sugar::IndexHash<RTYPE>( table ).fill().lookup( x.get_ref() ) ;
31}
32
33} // Rcpp
34#endif

Callers

nothing calls this directly

Calls 2

lookupMethod · 0.80
fillMethod · 0.80

Tested by

no test coverage detected