I have two dfm and I would like to know which words are missing/different between them. For example,
df1 <- data.frame(Text = c("Stackoverflow is a great place where very skilled data scientists are willing to help you. Trust me you will need help if you are doing a PhD. So Stack is immensely useful. Thank you guys to sort this out for me."), stringsAsFactors = F)
corpus1 <- corpus(df1, text_field = "Text")
df2 <- data.frame(Text = c("Stackoverflow is a great place where very skilled data scientists are willing to help you. Trust me you will need help if you are doing a PhD."), stringsAsFactors = F)
corpus2 <- corpus(df2, text_field = "Text")
dfm1 <- (corpus1, remove_punct = TRUE)
dfm2 <- (corpus2, remove_punct = TRUE)
I would like to see which words in dfm2 are not in dfm1. Thanks a lot for your help!