Version: | 0.1 |
Date: | 2017-11-15 |
Title: | 'ProPublica' U.S. Congress Bills API Wrapper |
Description: | An API wrapper around the 'ProPublica' API https://projects.propublica.org/api-docs/congress-api/ for U.S. Congressional Bills. Users can include their API key, U.S. Congress, branch, and offset ranges, to return a dataframe of all results within those parameters. This package is different from the 'RPublica' package because it is for the 'ProPublica' U.S. Congress data API, and the 'RPublica' package is for the Nonprofit Explorer, Forensics, and Free the Files data APIs. |
Imports: | httr, dplyr, stringr |
Author: | Nadine Fischoff <nadine.khattak@gmail.com> |
Maintainer: | Nadine Fischoff <nadine.khattak@gmail.com> |
License: | MIT + file LICENSE |
Suggests: | knitr, rmarkdown |
VignetteBuilder: | knitr |
RoxygenNote: | 6.0.1.9000 |
NeedsCompilation: | no |
Packaged: | 2017-11-17 12:08:16 UTC; nadinekhattak |
Repository: | CRAN |
Date/Publication: | 2017-11-17 12:26:11 UTC |
Gets the bills depending on U.S.Congress, branch, and offsets
Description
Gets the bills depending on U.S.Congress, branch, and offsets
Usage
getBills(key, congress, branch, type, numFrom, numTo)
Arguments
key |
is the api key |
congress |
it the number of the U.S. Congress: for example, 114 for the 114th U.S. Congress |
branch |
is the House or the Senate branch |
type |
is the type of bills; options are introduced, updated, active, passed, enacted, vetoed |
numFrom |
is the offset number beginning range: for example, 1 will get the first 20 bills |
numTo |
is the offset number to: for example, 40 will get bills 40 to 60. Entering numFrom as 1 and numTo as 40 will return bills 1 to 60 |
Value
returns a dataframe with all bills and info from the API within the arguments' parameters
Author(s)
Nadine Fischoff, nadine.khattak@gmail.com
References
https://projects.propublica.org/api-docs/congress-api/
Examples
## Not run:
congress_115_enacted <- getBills(api_key,"115","house","enacted",1,500)
congress_114_introduced <- getBills(api_key,"114","senate","introduced",1,100)
## End(Not run)