Suppose you have a data frame called data with two identical columns:
A B 1 1 2 2 3 3 4 4
How can I check if these two columns are identica
You could use identical
identical
identical(DT[['A']],DT[['B']])