Learn R Programming

textreg (version 0.1.5)

make.appearance.matrix: Make phrase appearance matrix from textreg result.

Description

Make matrix of which phrases appear in which of the positively marked documents.

Usage

make.appearance.matrix(result)

Arguments

result

An textreg.result object.

Value

A $n X p$ matrix for $n$ documents and $p$ phrases in the result object. Each entry is a 0/1 value indicating presence of the given phrase in the given document.

Details

Very similar to phrase.matrix, except this looks only at positively marked documents and just returns 1 or 0 on whether any document has a phrase, rather than giving counts. This is used by the clustering vizualizations and make.similarity.matrix.

See Also

make.similarity.matrix

phrase.matrix

Other Phrase Vizualization: cluster.phrases, make.phrase.correlation.chart, make.similarity.matrix