Check whether two columns match

two_cols_match(col1, col2, data)

Arguments

col1, col2

Column names as string.

data

The data frames that contains col1 and col2.