contain_equal_docs {topicdoc}R Documentation

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)

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


[Package topicdoc version 0.1.1 Index]