Skip to main content

Rf_match

Function Rf_match 

Source
unsafe fn Rf_match(x: SEXP, table: SEXP, nomatch: c_int) -> SEXP
Expand description

Match elements of first vector in second vector.

Like R’s match() function.

§Parameters

  • x: Vector of values to match
  • table: Vector to match against
  • nomatch: Value to return for non-matches

§Returns

Integer vector of match positions (1-indexed, nomatch for non-matches). Checked wrapper for Rf_match. Calls Rf_match_unchecked and routes through with_r_thread. Generated from source location line 3744, column 8. Generated from source file miniextendr-api/src/ffi.rs.