Description Usage Arguments Details Value Examples
This function identifies the top number(num
) of user specified
n-grams(ngram
) and provides a visual of each.
1 | ngram.print(data.td, ngram = 1, num = 15)
|
data.td |
A tidy dataset |
ngram |
A user defined integer representing the number of tokens to analyze, 'n' |
num |
A user definied number of most frequenct ngrams to plot in the bar graph |
This function identifies all of the user specified n-grams (n word co-occurrences
in a sequence of text) in a corpus, sums the frequency of occurrence for
each n-gram, and sorts the list in descending order. The function then
provides an inverted bar chart identifying each n-gram and its frequency of
occurrence down to a user specified lower-bound (freq
).
A bar graph of the most frequent ngram
found within a corpus
1 | ngram.print(Articles, 2, 20)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.