pairwise_count: Perform a pairwise count of words by id
Description
This is a 'data.table' implementation that mimics the output of
pairwise_count() from 'widyr' to reduce package dependency. This is used
internally within tm_cooc().
Usage
pairwise_count(data, id = "line", word = "word")
Value
data frame with the following columns representing a pairwise count:
"item1"
"item2"
"n"
Arguments
data
Data frame output from tm_clean().
id
String to represent the id variable. Defaults to "line".
word
String to represent the word variable. Defaults to "word".