Learn R Programming

RcmdrPlugin.temis (version 0.7.10)

corpusDissimilarity: Cross-Dissimilarity Table

Description

Build a cross-dissimilarity table reporting Chi-squared distances from two document-term matrices of the same corpus.

Usage

corpusDissimilarity(x, y)

Arguments

x

a document-term matrix

y

a document-term matrix

Details

This function can be used to build a cross-dissimilarity table from two different variables of a corpus. It takes two versions of a document-term matrix, aggregated in different ways, and returns the Chi-squared distance between each combination of the tow matrices' rows. Thus, the resulting table has rows of x for rows, and rows of y for columns.

See Also

dissimilarityTableDlg, DocumentTermMatrix, dist