twitter_tm | R Documentation |
Total convenience function to extract Twitter timeline of specified handle, 18,000 tweets mentioning specific search query, and then uses biterm topic model algorithm to model TM of both the timeline and mentions.
twitter_tm(handle, search_query = NULL, topic_ct, term_ct)
handle |
Twitter handle without |
search_query |
boolean search query |
topic_ct |
how many topics to model |
term_ct |
how many top salient terms to return for each topic |
This is the only function that needs to be run. Everything else works in the background.
Relies heavily on rtweet
BTM
and LDAvis
packages. See rtweet
documentation
for Twitter API access.
## Not run: twitter_tm("BMWUSA", search_query = "bmw", topic_ct = 40, term_ct = 30) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.