contain_equal_docs: Helper function to check that a topic model and a dtm contain...

Description Usage Arguments Value

View source: R/topic_diagnostics.R

Description

Helper function to check that a topic model and a dtm contain the same number of documents

Usage

1
contain_equal_docs(topic_model, dtm_data)

Arguments

topic_model

a fitted topic model object from one of the following: tm-class

dtm_data

a document-term matrix of token counts coercible to simple_triplet_matrix

Value

a logical indicating whether or not the two object contain the same number of documents


topicdoc documentation built on Oct. 30, 2019, 11:26 a.m.