Compare a vector of column names or indexes against another vector which is known to be true.

map_indexes(x, y)

Arguments

x

Character or numeric vector of possible matches.

y

Character or numeric vector of true values.

x and y must be of the same length.

Value

A numeric vector of the same length of x and y containing matched column indexes.