Returns TRUE if x contains any instances of dk

has_dont_know(x, dk = "Don't Know")

Arguments

x

Character vector or factor

dk

Character vector, containing search terms, e.g. c("Don't know", "Don't Know")

Value

TRUE or FALSE