split_dfm: Splits Document Term Matrix into two parts.

split_dfmR Documentation

Splits Document Term Matrix into two parts.

Description

Splits a document term matrix according to the provided splitIndex. Outputs a list of two sections: the first that belongs to the splitIndex, and the second that does not.

Usage

split_dfm(dfm, splitIndex)

Arguments

dfm

[matrix] Output of get_dfm. Document-Term Matrix.

splitIndex

[vector] Vector of strings denoting the row values to split on.

Value

[list] List of two parts of the document term matrix.


activetext/activeR documentation built on May 31, 2024, 10:21 a.m.