user_friends | R Documentation |
This function will accept a screen name of a user and output the name, screen name, and names of the user's friends.
user_friends(screen_name, number = 195)
screen_name |
A string of one Twitter screen name |
number |
The number of friends to output, the default is 195. |
This will only work correctly with users that have public profiles, or if you are authenticated or granted access.
A DataFrame that contains the following columns:
name |
The name of the user |
screen_name |
The screen name of the user |
description |
The description of the user |
Ling Xiang Zou
#user_friends(screen_name ="BarackObama", 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.