Description Usage Arguments Author(s)
View source: R/compare_vocabs.R
Compare vocabularies
1 2 3 4 5 6 7 8 9 | compare_vocabs(
tc_dfs,
word_col = "Word",
counts_col = "Count",
weighting_fn = function(x) { log(x + 1) },
calc_weighting_metrics = FALSE,
rel_tf_nrtf_beta = 1,
zero_negatives = TRUE
)
|
tc_dfs |
Named list of Term Counts data frames. Each data frame must contain a column with the words and a column with their counts. Each document must be uniquely named. |
weighting_fn |
Function for weighting the count column before normalizing to frequency. The metrics using the weighting function will be named with a "_weighted" suffix. NOTE: This is experimental. The metrics have not been thought through and some may not be meaningful. |
Ludvig Renbo Olsen, r-pkgs@ludvigolsen.dk
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.