count_ngrams: Counts ngrams in a set of threads

Description Usage Arguments Value

View source: R/ThreadNet_Core.R

Description

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.

Usage

1
count_ngrams(o, TN, CF, n)

Arguments

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

Value

a dataframe with ngram, frequency and proportion in descending order


ThreadNet/ThreadNet documentation built on July 26, 2019, 8:16 p.m.