Learn R Programming

smappR (version 0.5)

getUsers: Returns user data for up to 100 Twitter users

Description

getUsers connects to the REST API of Twitter and returns user objects (user information) for up to 100 Twitter users, based on their screen names or user IDs

Usage

getUsers(oauth_folder = "~/credentials", screen_names = NULL, id = NULL, include_entities = "true", verbose = FALSE)

Arguments

oauth_folder
folder where OAuth tokens are stored.
screen_names
user names of the Twitter users
id
ids of Twitter users
include_entities
if "true", returned data will include most recent tweet
verbose
shows additional ouput about token usage in console

Examples

Run this code
## Not run: 
# ## Download user data for user "p_barbera"
#  userdata <- getUsers(screen_names="p_barbera", oauth_folder="oauth")
# ## End(Not run)

Run the code above in your browser using DataLab