Description Usage Arguments Value Author(s) See Also Examples
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.
1 | get_pw_pol(start.page = 1, end.page = "all")
|
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. |
Data frame with politician info from Politwoops.
Katya Ognyanova rstats@ognyanova.net
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.