A matrix or simple_triplet_matrix with count entries.
byrow
An indicator for whether you have observation-rows and
category-columns, or vice versa.
freq
An indicator for whether x is already a frequency
matrix.
offset
An offset added to the total number of documents.
Value
freq returns a matrix with row (byrow=TRUE) or column
(byrow=FALSE) sums of one. tfidf returns a matrix
with entries $f_{ij} \log[ (n+o)/d_j ]$, where $f_{ij}$ is term-j frequency in document-i,
$d_j$ is the number of documents containing term-j, and $o$ is
your offset.