You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
P <- nmf(tdm, rank=2) Error in (function (classes, fdef, mtable) :
unable to find an inherited method for function ‘nmf’ for signature ‘"TermDocumentMatrix", "numeric", "missing"’
I've seen people use nmf like this, i'm not sure why it isn't working for me.
The text was updated successfully, but these errors were encountered:
library(NMF)
textes <- tm_map(textes, stripWhitespace)
textes <- tm_map(textes, tolower)
textes <- tm_map(textes, removePunctuation)
textes <- tm_map(textes, removeNumbers)
textes <- tm_map(textes, removeWords, stopwords("english"))
tdm <- TermDocumentMatrix(textes)
P <- nmf(tdm, rank=2)
Error in (function (classes, fdef, mtable) :
unable to find an inherited method for function ‘nmf’ for signature ‘"TermDocumentMatrix", "numeric", "missing"’
I've seen people use nmf like this, i'm not sure why it isn't working for me.
The text was updated successfully, but these errors were encountered: