make.appearance.matrix {textreg}R Documentation

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.

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


[Package textreg version 0.1.5 Index]