stringMatches checks if string is equal to one of the choices.

stringMatches(x, choice)

Arguments

x

string to test.

choice

Character vector with possible values for x.

Value

Logical indicating if x matches one of the strings in

choice.