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

Description Usage Arguments Details Value See Also

Description

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

Usage

1

Arguments

result

An textreg.result object.

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.

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.

See Also

make.similarity.matrix

phrase.matrix

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


textreg documentation built on May 2, 2019, 8:34 a.m.