Build a bit flag by checking for a range

bf_range(x, test, min, max)

Arguments

x

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

test

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

min

numeric(1)
the minimum allowed value.

max

numeric(1)
the maximum allowed value.