I have a data frame with one column like this:
col1
line1
line1
line2
I try to remove duplicate using this:
df2 <- df[!duplicated(df), ]
but it produces a large factor instead of removing the duplicate. The result of structure something like is this:
str(df2)
Factor w/ 7472 levels