Description Usage Arguments Value Examples
View source: R/text_best_n_topics.R
Select best number of topics for LDA
1 | text_best_n_topics(data_dtm, k_opts)
|
data_dtm |
Document-Term matrix as prepared by text_dtm_prep |
k_opts |
integer vector of numbers of topics to be considered |
single integer: best number of topics
1 2 | text_dtm_prep(dummy_response, colnames(dummy_response)[7], 'response_id') %>%
text_best_n_topics(., seq(5, 10))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.