You have a dataframe that you're analysing, and it seems like you have three or more columns that are identical. But, how can you tell? This is a problem I face frequently and I haven't found a fast tidyverse solution when checking more than two columns.
If you are comparing two columns, you can use:
mutate(is_equal = col_1 == col_2).
But you cannot do:
mutate(is_equal = col_1 == col_2 == col_3)
Reprex:
structure(list(col_1 = c(109, 109, 109, 109, 109, 109, 109, 109,
109, 109, 109, 109, 77, 77, 78, 77), col_2 = c(109, 109, 109,
109, 109, 109, 109, 109, 109, 109, 109, 109, 77, 77, 77, 77),
col_3 = c(109, 109, 109, 109, 109, 109, 109, 109, 109, 109,
109, 109, 77, 77, 77, 77)), row.names = c(NA, -16L), class = c("tbl_df",
"tbl", "data.frame"))