getBills: Gets the bills depending on U.S.Congress, branch, and offsets

Description Usage Arguments Value Author(s) References Examples

Description

Gets the bills depending on U.S.Congress, branch, and offsets

Usage

1
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

1
2
3
4
5
## 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)

proPubBills documentation built on May 2, 2019, 11:49 a.m.