clean_tweets | R Documentation |
Removes from the text, users mentions, hashtags, urls and media. Some urls or other text might remain if it is not recognized as an entity by the API.
clean_tweets(x, clean = c("users", "hashtags", "urls", "media"))
x |
Tweets |
clean |
Type of elements to be removed. |
A vector with the text without the entities selected
if (auth_has_default()) { tweets <- search_tweets("weather") tweets # tweets clean_tweets(tweets) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.