-
Notifications
You must be signed in to change notification settings - Fork 198
Provide cleaning function. #721
Comments
Great idea! I feel like working with the new data structure is quite tricky.
However, this breaks:
A cleaning function for both text and maybe the tricky list columns would be nice! |
Entities is itself a list: I suppose that |
In the devel branch I implemented a function that can remove url, media links, mentions and hashtags from the text and returns the remaining text. You can test it in the devel branch (I recommend to activate the dev mode for this testing) devtools::dev_mode()
remotes::install_github("ropensci/rtweet@devel")
library("rtweet")
clean_tweets(search_object_result) Let me know if this works well or you think a different way would be better |
I'm closing the issue, but if you have any feedback will be appreciated. |
In the latest version in devel (1.0.2.9014) there are some helpers to extract these. After installing it check ?helpers. Please @meier-flo let me know if they help or I should document better the output for each helper |
Many text analysis remove url, hashtags, cashtags and user mentions.
It would be nice if there were a function to remove this from the information provided by the API.
The text was updated successfully, but these errors were encountered: