tf.Rd
Compute term-frequency.
tf(dtm) # S3 method for dtm tf(dtm) # S3 method for JuliaObject tf(dtm)
dtm | An object of class |
---|
# NOT RUN { init_textanalysis() # build document doc1 <- string_document("First document.") doc2 <- string_document("Second document.") corpus <- corpus(doc1, doc2) update_lexicon(corpus) m <- document_term_matrix(corpus) tf(m) # }