I follow some 80 odd people/ news sources on my twitter account. For a while I wondered which of these sources are most active on twitter. I picked a simple metric ‘# of status messages posted to twitter’ as the measure of activity. Using R I quickly wrote a program to generate my top 10 most active twitter sources.
Here is the bar plot of the result
## Prerequisite: Install twitteR package 'install.packages(twitteR) ## load twitteR package library(twitteR) ##get handle to a twitteR user object (in this case for user d_lalit tuser
I realize the code is not optimally written. Any suggestions refine the code will be appreciated.
In the latest version of twitteR package, the method userFriends() has been deprecated. You may replace line#9 in the above code as with the code given below:
tfriends <- tuser$getFriends()