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

View source: R/topic_diagnostics.R

contain_equal_docsR 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


topicdoc documentation built on July 17, 2022, 1:05 a.m.