See this
df<-data.frame(V1=c("m h j i d a","j h o f k l","g k o d m a"))
unique(unlist(apply(df,1,strsplit,split=" ")))
8
solved Getting unique values in R [closed]
See this
df<-data.frame(V1=c("m h j i d a","j h o f k l","g k o d m a"))
unique(unlist(apply(df,1,strsplit,split=" ")))
8
solved Getting unique values in R [closed]