I'm using TwitteR package (specifically, the searchTwitter
function) to export in a csv
format all the tweets containing a specific hashtag.
I would like to analyze their text and discover how many of them contain a specific list of words that I have just saved in a file called importantwords.txt
.
How can I create a function that could return me a score of how many tweets contain the words that I have written in my file importantwords.txt
?
Pseudocode:
Is that along the lines of what you wanted?