clean_tweets function

Clean text of tweets

Clean text of tweets

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"))

Arguments

  • x: Tweets
  • clean: Type of elements to be removed.

Returns

A vector with the text without the entities selected

See Also

rtweet-deprecated

  • Maintainer: Lluís Revilla Sancho
  • License: MIT + file LICENSE
  • Last published: 2024-02-24