Learn R Programming

PolitwoopsR (version 1.0)

get_pw_pol: Get politician data from the US Politwoops project

Description

This function scrapes politician data from the US Politwoops project maintained by the Sunlight Foundation. The data is online at http://politwoops.sunlightfoundation.com/users.

Usage

get_pw_pol(start.page = 1, end.page = "all")

Arguments

start.page
The first page to get - defaults to page 1 (http://politwoops.sunlightfoundation.com/users?page=1)
end.page
The last page to get - defaults to the last available page.

Value

Data frame with politician info from Politwoops.

See Also

get_pw_tweets merge_pw

Examples

Run this code
## Not run: 
# 
# # Get all the politician data:
# pol.df <- get_pw_pol()
# 
# # Get the first 5 pages of politicians:
# pol.df <- get_pw_pol(1, 5)
# 
# ## End(Not run)

Run the code above in your browser using DataLab