Checks if the second parameter includes the first one as a value, a column name, or a name.

inn(x, table)

Arguments

x

Character to check if it exists in a vector or list.

table

List, data frame, or any vector.

Value

Logical value TRUE if it exists, FALSE if it does not.

Examples

.check <- inn("a", list(a = 1:5))