splitDtm: Split a dtm into a list.

Description Usage Arguments Value

Description

Transform a dtm into a list containing the dtm in parts.

Usage

1
splitDtm(dtm, subcorpus)

Arguments

dtm

a document-term matrix

subcorpus

a vector that matches the documents (rows) of the dtm. The dtm will be split into separate dtms for each value of subcorpus.

Value

A list of dtms, named after the split_by values


kasperwelbers/corpus-tools documentation built on May 20, 2019, 7:37 a.m.