glance.tidylda: Glance method for 'tidylda' objects

Description Usage Arguments Value Examples

View source: R/tidy-methods.R

Description

glance constructs a single-row summary "glance" of a tidylda topic model.

Usage

1
2
## S3 method for class 'tidylda'
glance(x, ...)

Arguments

x

an object of class tidylda

...

other arguments passed to methods,currently not used

Value

glance returns a one-row tibble with the following columns:

num_topics: the number of topics in the model num_documents: the number of documents used for fitting num_tokens: the number of tokens covered by the model iterations: number of total Gibbs iterations run burnin: number of burn-in Gibbs iterations run

Examples

1
2
3
4
5
dtm <- nih_sample_dtm

lda <- tidylda(data = dtm, k = 10, iterations = 100, burnin = 75)

glance(lda)

tidylda documentation built on Dec. 11, 2021, 10:02 a.m.