Description Usage Arguments Value Examples
Create n-grams
1 2 3 4 5 6 7 8 |
x |
A text.table created by as.text.table(). |
text |
A string, the name of the column in x to build n-grams with. |
group_by |
A vector of column names to group by. Doesn't work if the group by column is a list column. |
count_col_name |
A string, the name of the output column containing the number of times each base record appears in the group. |
n |
A integer, the number of grams to make. |
ngram_prefix |
A string, a prefix to add to the output n-gram columns. |
A text.table, with columns added for n-grams (the word, the count, and percent of the time the gram follows the word).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.