[R] findAssocs Heatmap in R

2018-10-25 Thread Elahe chalabi via R-help
Hi all, I have a document term matrix and I would like to have a heatmap (geom_tile) for 20 most associated words to a specific word in it. Here is my dtm:  corpus=Corpus(VectorSource(data$Message))  corpus=tm_map(corpus,tolower) corpus=tm_map(corpus,removePunctuation) corpus=tm_map(corpus,rem

Re: [R] findAssocs in TM package in R help?

2016-07-18 Thread Duncan Murdoch
On 18/07/2016 10:17 AM, Shivi Bhatia wrote: Hi Duncan, This is no homework, i am asking for a package a solution or other measures to achieve this. I am not asking for a homework or to have some one else do the work for me. Sorry, "text mining assignment" sounded like homework to me. But some

Re: [R] findAssocs in TM package in R help?

2016-07-17 Thread Duncan Murdoch
On 17/07/2016 6:31 PM, Shivi Bhatia wrote: Hi Team, Please suggest. On Sun, Jul 17, 2016 at 2:55 AM, Shivi Bhatia wrote: Good Day, I am working on a text mining assignment and have built the document matrix using the tm package. We don't do homework here. You should ask your instructor f

Re: [R] findAssocs in TM package in R help?

2016-07-17 Thread Shivi Bhatia
Hi Team, Please suggest. On Sun, Jul 17, 2016 at 2:55 AM, Shivi Bhatia wrote: > Good Day, > > I am working on a text mining assignment and have built the document > matrix using the tm package. > > Now I need to run findAssocs from my dtm with some word say 'like' with a > correlation of 0.70 b

[R] findAssocs in TM package in R help?

2016-07-16 Thread Shivi Bhatia
Good Day, I am working on a text mining assignment and have built the document matrix using the tm package. Now I need to run findAssocs from my dtm with some word say 'like' with a correlation of 0.70 but as far as i have been researching it tells it this function is only viable when we have mo

Re: [R] findAssocs()

2012-07-20 Thread rtw30606
Hi Here is some code to illustrate how the correlations are calculated. > data <- c("word1", "word1 word2","word1 word2 word3","word1 word2 word3 > word4","word1 word2 word3 word4 word5") > frame <- data.frame(data) > frame data 1 word1 2

Re: [R] findAssocs()

2011-09-26 Thread Rolf Turner
On 27/09/11 12:56, Henri-Paul Indiogine wrote: I am trying to find the math behind the "tm" package findAssocs() ?findAssocs does not say anything besides "association" and "correlate" Usually entering "findAssocs" at the CLI gives the code for a R function, but in this case I obtain: function

[R] findAssocs()

2011-09-26 Thread Henri-Paul Indiogine
I am trying to find the math behind the "tm" package findAssocs() ?findAssocs does not say anything besides "association" and "correlate" Usually entering "findAssocs" at the CLI gives the code for a R function, but in this case I obtain: function (x, term, corlimit) UseMethod("findAssocs", x)