Exporting twitter data to Gephi using R
I have compiled a dataset consisting of thousands of tweets using R. The dataset basically looks like this: Data <- data.frame( X = c(1,2), text = c("Hello @User1 #hashtag1, hello @User2 and @User3, #hashtag2", "Hello @User2 #hashtag3, hello @User1 and @User3, #hashtag4"), screenname = c("author1", "author2") ) Now I want to export this dataset to a Gephi supported graph format (see Supported Graph Formats - Gephi ) Whenever an "author" mentions a @user in the text, there should be a direct link from the author to the user. In the case above, the results should be like this: author1 -> @User2