Skip to contents

Find matching reference rows

Usage

reference_match_rows(index, values)

Arguments

index

Lookup from reference_index() or prepare_model_references().

values

Character vector or list of text values; NULL and NA indicate missing values.

Value

One integer vector per input value, containing matching positions in index$data and index$values. Unknown or missing values return integer(0). Multiple positions are preserved; no arbitrary canonical row is selected.

Details

Repeated values share a lookup. Use lengths() for match counts and the returned positions to retrieve canonical codes or complete entity rows.