Learn R Programming

topicdoc (version 0.1.1)

n_topics: Helper function to determine the number of topics in a topic model

Description

Helper function to determine the number of topics in a topic model

Usage

n_topics(topic_model)

Value

an integer indicating the number of topics in the topic model

Arguments

topic_model

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