powered by
View overlapping terms for a given pair of documents
get_overlap_terms(dtm, doc.x, doc.y, dtm.y = dtm)
A character vector
A quanteda dfm
The name of the first document in dtm
The name of the second document in dtm (or dtm.y)
Optionally, a second dtm (for when the documents occur in separate dtm's)
get_overlap_terms(rnewsflow_dfm, quanteda::docnames(rnewsflow_dfm)[1], quanteda::docnames(rnewsflow_dfm)[5])
Run the code above in your browser using DataLab