Description Usage Arguments Value Examples
View source: R/oneaccount_followers_network.R
Create a network of Twitter followers from ONE account
1 | oneaccount_followers_network(x, token = NULL, max.accounts = 50000)
|
x |
The screen name of ONE account from which the followers and following will be retreive |
token |
A variable containing the twitter API credentials. If you used automatic_setup, you can put "twitter_token" |
max.accounts |
A maximum number of followers/following. A list of 100 accounts can bring to a million followers/following to retreive for the network. Default is set to 50.000, which is roughly 1 hour long |
A dataframe with 2 columns : an Source node and Target node. This dataframe can be exported in csv and used in a network analysing software like Gephi
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
## Get a network of the following list :
USER_NAME <- "account_name"
# Use the Function to retrieve the network
users_network <- oneaccount_followers_network(USER_NAME, token = twitter_token, max_accounts = 100000)
# Export the network to your computer and remove the first column (rownames)
write.csv(users_network, "/PATH_TO_DIRECTORY/users_network.csv", rownames = FALSE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.