compare_terms | R Documentation |
This function compares term frequencies between two sets of articles.
compare_terms(
corpus1,
corpus2,
text_column = "abstract",
corpus1_name = "Corpus1",
corpus2_name = "Corpus2",
n = 100,
remove_stopwords = TRUE
)
corpus1 |
First corpus (data frame). |
corpus2 |
Second corpus (data frame). |
text_column |
Name of the column containing the text to analyze. |
corpus1_name |
Name for the first corpus in the output. |
corpus2_name |
Name for the second corpus in the output. |
n |
Number of top terms to return. |
remove_stopwords |
Logical. If TRUE, removes stopwords. |
A data frame containing term frequency comparisons.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.