Skip to main content

builtin_match

Function builtin_match 

Source
fn builtin_match(
    args: &[RValue],
    named: &[(String, RValue)],
) -> Result<RValue, RError>
Expand description

Find positions of first matches of x in table.

For each element of x, returns the position of its first exact match in table, or NA if no match is found. Supports case-insensitive matching via ignore.case.

@param x values to look up @param table values to match against @param ignore.case logical; if TRUE, comparison is case-insensitive (Unicode-aware) @return integer vector of match positions (1-indexed)