I would like to collect followers/followerIDs of several Twitter users. The problem is that in the end, only the followers of the last user are listed in the table.
clients <- lookupUsers(c('user1', 'user2'))
for(i in 1:length(clients)) {
start <- getUser(clients[i])
twitter.followers <- start$getFollowers(n=NULL)
twitter.followersID <- start$getFollowerIDs(n=NULL)
d <- twListToDF(twitter.followers) }
f <- write.table(d, file = "twitter2", row.names = FALSE, sep = "\t", dec = ",")
Actually, I don't need that detailed information the twListToDF-command provides. I would just like to create a file which lists followers and IDs for more than one user.