searchBill.RdSearching Bill Information in US Congress Website.
searchBill(key = NULL, congress = NULL, chamber = "Both", billtype = "bills", billstatus = NULL, subject = NULL, house_committee = NULL, senate_committee = NULL, party = NULL, pageSort = "documentNumber", pageSort_direction = "descending", maxN = 1000, urlonly = FALSE, searchURLprint = FALSE)
| key | A |
|---|---|
| congress | A |
| chamber | A |
| billtype | A |
| billstatus | A |
| subject | A |
| house_committee | A |
| senate_committee | A |
| party | A |
| pageSort | The way the bills in search are sorted. Choose one of
|
| pageSort_direction | Direction of |
| maxN | The max number of bills to import. The default is |
| urlonly | if |
| searchURLprint | If |
If urlonly==FALSE and searchURLprint==FALSE,
A data.frame that contains following variables.
ID: Bill ID (See BillIDfromURL)
URL: Bill summary page URLs
Title: Bill title
Sp_Chamber: Chamber (i.e., House or Senate) of sponsor
Sp_Name: Sponsor full name
Sp_LastName: Sponsor last name
Sp_Party: Party of sponsor
Sp_State: State of sponsor
Sp_District: District of sponsor
Cosp_N: Number of cosponsors
IntroducedDate: Date of introduction
ActLatestDate: Date of the latest action
ActLatestText: Content of the latest action
Committees: Name of committees
# Search all bills (importing only newest 10) billdt <- searchBill(maxN=10)#> 254240 legislations found. Import first 10. #> #> Getting URL from search page 1...# Seach bills with keyword "air" (importing newest 100) billdt <- searchBill(key="air", maxN=100)#> 14975 legislations found. Import first 100. #> #> Getting URL from search page 1...