twitter_tm: Get Twitter Timeline, Mentions and Topic Models

View source: R/twitter_tm.R

twitter_tmR Documentation

Get Twitter Timeline, Mentions and Topic Models

Description

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.

Usage

twitter_tm(handle, search_query = NULL, topic_ct, term_ct)

Arguments

handle

Twitter handle without @ sign

search_query

boolean search query

topic_ct

how many topics to model

term_ct

how many top salient terms to return for each topic

Details

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.

Examples

## Not run: 
twitter_tm("BMWUSA", search_query = "bmw", topic_ct = 40, term_ct = 30)

## End(Not run)

taylorgrant/twAccount documentation built on March 20, 2022, 7:33 p.m.