Description Usage Arguments Value Examples
Function to create ngram docs
1 | ngram(x, k = 1)
|
x |
tmCorpus object |
k |
number of words in ngram |
returns tmParsed object of ngrams
1 2 3 4 | corp <- tmCorpus(c("This is first document", "This is second"))
parsed_ngrams <- ngram(corp, k = 2)
tabled <- make_tabled(parsed_ngrams)
content(tabled)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.