Learn R Programming

topicdoc (version 0.1.1)

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

Description

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

Usage

contain_equal_docs(topic_model, dtm_data)

Value

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

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