convert_dtm: Convert various things to a 'dgCMatrix' to work with various...

Description Usage Arguments Value

View source: R/utils.R

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

1

Arguments

dtm

the data you want to convert

Value

an object of class dgCMatrix


tidylda documentation built on Dec. 11, 2021, 10:02 a.m.