Build a cross-dissimilarity table reporting Chi-squared distances from two document-term matrices of the same corpus.
corpusDissimilarity(x, y)
a document-term matrix
a document-term matrix
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.