I'm trying to get all of the unique items in a data frame variable with comma separated strings:
I have this dataframe
df = data.frame(v1 = c("A,S", "A,B,F", "A,B,C,D"))
And I want the outcome to be this:
A,B,C,D,F,S
A loop would work but I know there's an easier way.