I'm trying to inspect a dataset to understand all of the different categorical qualities a dataset can take on.
The actual data set I'm using has 100,000+ rows and I have no idea whats in it
For simplicity's To illustrate, for the following df:
a<-(1:10)
b<-c("a,b","c,d","c","c","a","a,d","b,d","c","c","a")
example_df <- data.frame(a,b)
example_df
I would like a function that will return: a,b,c,d
I have tried using "unique" function, but this doesn't work, because it returns combinations:
uni <- unique(example_df$b)
uni
[1] a,b c,d c a a,d b,d
Levels: a a,b a,d b,d c c,d
Doe anyone know of a solution for this?