Description Usage Arguments Value Examples
convert a document (or doc filepath) to a df of bigrams or bigram counts
1 2 3 |
doc |
|
is_path |
|
stops |
|
lower |
|
toss_punct |
|
toss_num |
|
return_counts |
|
quiet |
a data frame with columns for bigram, w1, w2, and count (or just the bigrams and document location indices if 'return_counts=FALSE')
1 | text2bigram(doc="INDUSTRIAL SOCIETY AND ITS FUTURE Introduction 1. The Industrial Revolution and its consequences have been a disaster for the human race.")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.