Identifying duplicate columns in a dataframe

How about:

testframe[!duplicated(as.list(testframe))]

Leave a Comment