corpora.compare: Compare two corpora

Description Usage Arguments Value

Description

Compare the term use in corpus dtm with a refernece corpus dtm.ref, returning relative frequencies and overrepresentation using various measures

Usage

1
2
corpora.compare(dtm.x, dtm.y = NULL, smooth = 1, min.over = NULL,
  min.chi = NULL, select.rows = NULL)

Arguments

dtm.x

the main document-term matrix

dtm.y

the 'reference' document-term matrix

smooth

the smoothing parameter for computing overrepresentation

Value

A data frame with rows corresponding to the terms in dtm and the statistics in the columns


kasperwelbers/corpus-tools documentation built on May 20, 2019, 7:37 a.m.