convert_dtm {tidylda} | R Documentation |
Convert various things to a dgCMatrix
to work with various functions
and methods
Description
Presently, tidylda
makes heavy usage of the dgCMatrix
class.
However, a user may have created a DTM (or TCM) in one of several classes.
Since data could be in several formats, this function converts them to a
dgCMatrix
before passing them along.
Usage
convert_dtm(dtm)
Arguments
dtm |
the data you want to convert |
Value
an object of class dgCMatrix
[Package tidylda version 0.0.5 Index]