get_pw_pol: Get politician data from the US Politwoops project

Description Usage Arguments Value Author(s) See Also Examples

View source: R/Pw_Functions.R

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

1
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.

Author(s)

Katya Ognyanova rstats@ognyanova.net

See Also

get_pw_tweets merge_pw

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## 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)

kateto/PolitwoopsR documentation built on May 20, 2019, 7:41 a.m.