Description Usage Arguments Value Examples
View source: R/get_user_network.R
get_user_network() takes a Twitter profile name or id number and returns data on this user's network connections, including an edgelist of the user's network.
1 2 3 4 5 6 7 8 9 10 11 |
screen_name |
Twitter user screen name. |
id |
Twitter user id. |
degree |
Number of degrees of user's friends/followers to collect. |
token |
Twitter API token. |
filter_col |
Name of column of user tibble to filter for Twitter user collection (optional). |
filter_val |
Value to filter on (optional). |
filter_logic |
For multiple filters, determines whether to filter based on "any" or "all" criteria (optional). |
greater |
When filtering number of friends/followers, determines whether filter is ceiling or floor on number of users (optional). |
... |
Additional arguments used for recursive function call within function. |
List with two elements: user tibble and edgelist tibble.
1 2 3 4 5 6 7 8 | ## Not run:
# Collect all connections 2 degrees from Twitter user Andrew_Carr24
# ex_token is the api token returned from api_credentials_to_token.
get_user_network(screen_name = "Andrew_Carr24", degree = 2, token = ex_token)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.