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

View source: R/utils.R

convert_dtmR 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


tidylda documentation built on July 26, 2023, 5:34 p.m.