characterMatches checks if all elements of a character vector matches values in choices.

characterMatches(x, choice)

Arguments

x

Character vector to test.

choice

Character vector with possible values for x.

Value

Logical indicating if x's elements matches any of the values in choice.