Description Usage Arguments Value Examples
View source: R/multiaccounts_followers_network.R
Create a network of Twitter followers from a list of accounts
1 | multiaccounts_followers_network(x, token = NULL, max.accounts = 50000)
|
x |
A list of screen names from whom 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 :
users_list <- c("account-1", "account-2")
# Use the Function to retrieve the network
users_network <- multiaccounts_followers_network(users_list, 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.