Build a bit flag by checking for a match with an external vector

bf_match(x, test, against)

Arguments

x

data.frame(1)
the table that contains test.

test

character(1)
the column in x for which a match is checked.

against

numeric(.) | character(.) | logical(1)
a vector of the same class as in test against which a match is performed.