compare_vocabs: Compare vocabularies

Description Usage Arguments Author(s)

View source: R/compare_vocabs.R

Description

Compare vocabularies

Usage

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
)

Arguments

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.

Author(s)

Ludvig Renbo Olsen, r-pkgs@ludvigolsen.dk


LudvigOlsen/vocabular2 documentation built on Jan. 4, 2020, 4:15 p.m.