Description Usage Arguments Value
View source: R/ThreadNet_Core.R
Counting ngrams is essential to several ThreadNet functions. This function counts n-grams within threads where the length of the thread is greater than n.
1 | count_ngrams(o, TN, CF, n)
|
o |
dataframe containing threads |
TN |
name of column in dataframe that contains a unique thread number for each thread |
CF |
name of the column in dataframe that contains the events that will form the nodes of the network |
n |
length of ngrams to count |
a dataframe with ngram, frequency and proportion in descending order
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.