match_arrow {arrow}R Documentation

match and %in% for Arrow objects

Description

base::match() is not a generic, so we can't just define Arrow methods for it. This function exposes the analogous functions in the Arrow C++ library.

Usage

match_arrow(x, table, ...)

is_in(x, table, ...)

Arguments

x

Array or ChunkedArray

table

Array, ChunkedArray, or R vector lookup table.

...

additional arguments, ignored

Value

match_arrow() returns an int32-type Array of the same length as x with the (0-based) indexes into table. is_in() returns a boolean-type Array of the same length as x with values indicating per element of x it it is present in table.


[Package arrow version 4.0.1 Index]