Construct a $n X p$ matrix of appearances for selected phrases out of textreg object. $n$ is the number of documents, $p$ is the number of phrases selected in the result object `rules.'
phrase.matrix(rules, n)
Either a textreg.result object or the rules list from such an object.
(Optional) If giving a rules list, the number of documents in corpus.