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
)A data frame containing term frequency comparisons.
First corpus (data frame).
Second corpus (data frame).
Name of the column containing the text to analyze.
Name for the first corpus in the output.
Name for the second corpus in the output.
Number of top terms to return.
Logical. If TRUE, removes stopwords.