Re: [R] topicmodels error

2010-10-11 Thread Dario Solari
Excuse me... when i re-read my e-mail i saw my mistake! I use a "TermDocumentMatrix" instead of a "DocumentTermMatrix"... On 11 Ott, 22:45, Dario Solari wrote: > I try to fit a LDA model to a TermDocumentMatrix with the topicmodels > package... > but R says: > > > Error in LDA(TDM, k = k, method

Re: [R] topicmodels error

2010-10-11 Thread David Winsemius
I don't know the answer, but let me point out that: "DocumentTermMatrix" %in% class(TDM) should return FALSE since: "DocumentTermMatrix" != "TermDocumentMatrix" -- David. On Oct 11, 2010, at 4:45 PM, Dario Solari wrote: I try to fit a LDA model to a TermDocumentMatrix with the topicmodels

[R] topicmodels error

2010-10-11 Thread Dario Solari
I try to fit a LDA model to a TermDocumentMatrix with the topicmodels package... but R says: > Error in LDA(TDM, k = k, method = "Gibbs", control = list(seed = SEED, : > x is of class “TermDocumentMatrix”“simple_triplet_matrix” > class(TDM) > [1] "TermDocumentMatrix""simple_triplet_matrix"