Description Usage Arguments Value Examples

Convenience Function to extract the most likely terms for each topic.

1 | ```
lda_terms(lda_model, n_terms = 10)
``` |

`lda_model` |
Fitted LDA Model. Object of class LDA). |

`n_terms` |
Integer number of terms to return. |

Data frame with top n terms for each topic.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ```
## Not run:
library(Twitmo)
# load tweets (included in package)
mytweets <- load_tweets(system.file("extdata", "tweets_20191027-141233.json", package = "Twitmo"))
# Pool tweets into longer pseudo-documents
pool <- pool_tweets(data = mytweets)
pooled_dfm <- pool$document_term_matrix
# fit your LDA model with 7 topics
model <- fit_lda(pooled_dfm, n_topics = 7, method = "Gibbs")
## End(Not run)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.