View source: R/feature_preparation.r
get_overlap_terms | R Documentation |
View overlapping terms for a given pair of documents
get_overlap_terms(dtm, doc.x, doc.y, dtm.y = dtm)
dtm |
A quanteda dfm |
doc.x |
The name of the first document in dtm |
doc.y |
The name of the second document in dtm (or dtm.y) |
dtm.y |
Optionally, a second dtm (for when the documents occur in separate dtm's) |
A character vector
get_overlap_terms(rnewsflow_dfm,
quanteda::docnames(rnewsflow_dfm)[1],
quanteda::docnames(rnewsflow_dfm)[5])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.