powered by
freq(x)
tm
freq
TermDocumentMatrix
freq( t(rmultinom(10, 20, c(1/2,1/4,1/8,1/8))) )
Run the code above in your browser using DataLab