lda_table_topics: Spread the term distribution over topics by topic columns

Description Usage Arguments Value

View source: R/lda_topics.R

Description

A topic modeling utility. Spreads the beta table of the LDA object resulting from 'topicmodels::LDA()' into the higest ranking terms and their beta values in columns per topic. The number of requested terms and topics can be specified as well as whether to display the beta's

Usage

1
lda_table_topics(lda, n_terms = 20, topics = NULL, beta = TRUE)

Arguments

lda

LDA object

n_terms

Number of highest ranking terms per topic to display

topics

A list of topic numbers to display. Optional butfFor stm objects must be provided

beta

return beta values? default yes

Value

a table that spreads for each topic a column of terms and their associated beta


doritge/tmutilsr documentation built on Feb. 2, 2020, 7:47 p.m.