common_friend_matrix: Twitter matrix of friend connection Code modded from boB...

common_friend_matrixR Documentation

Twitter matrix of friend connection Code modded from boB Rudis' 21 Recipes for Mining Twitter with Rtweet https://rud.is/books/21-recipes/visualizing-intersecting-follower-sets-with-upsetr.html

Description

This function creates a matrix of friends of a list of twitter users, sums the number of common friends, and then ranks them in descending order.

Usage

common_friend_matrix(user_list, friend_depth = 200, token = NULL)

Arguments

user_list

A list of user_names

friend_depth

The number of most recent friends to include. Defaults to 200

token

A twitter oauth token. Default is NULL and will use token in Environment

Examples

users <- c("POTUS", "jack", "elonmusk")
common_friend_matrix(user_list = users, friend_depth = 300, token = NULL)

Arf9999/rtweetXtras documentation built on June 27, 2022, 5:10 a.m.