Text analysis with R.
My dataset is 2000 comments from 2000 different surveys. I have created Bi-grams. I have checked frequecy of words, then word cluster analysis with hclust(), then Word association with findAssocs, for example, findAssocs(bigram_dtm,"long time",0.2).
For example, I am seeing that "long time" has an association of 0.66 with " felt waiting".
I have tried to find it online but not success yet... Questions: Is there any way I can print comments where this bi_grams are together? Is there any way I can print comments where "long time" are?
Thanks,
I think that what you are looking for is
grep. You can use it to get the indices of the comments you are looking for or use those indices to get at the comments themselves.( Some comments stolen from
fortune())