Developped by Gento Kato (Last Updated: 06/21/2019)
Description
Extract and manipulate bill information from US Congress website. The package website is published HERE.
Installation
devtools::install_github(“gentok/congressbills”)
Main Functions
-
searchBill
Search bills by keywords and other conditions.
-
getBill
Get bill summary page URL (or scrapeBill
object) from bill and congress number.
-
scrapeBill
Scrape bill information from Congress website using bill summary page URL.
-
collectBillData
Collect information of Congress bill from scrapeBill
object.
-
read_scrapeBill
Import a (or a list of) scrapeBill
object saved as .rds
file.
-
write_scrapeBill
Write a (or a list of) scrapeBill
object into .rds
file.
Supplemental Functions
-
BillIDfromURL
Collect Bill ID from bill summary page URL(s).
-
collectBillID
Collect information that identifies bill from scrapeBill
object.
-
collectTitle
Collect information regarding title(s) of the bill from scrapeBill
object.
-
collectSummary
Collect information regarding summary of the bill from scrapeBill
object.
-
collectSponsorship
Collect information regarding sponsorship of the bill from scrapeBill
object.
-
collectAction
Collect information regarding actions of the bill from scrapeBill
object.
-
collectCommittee
Collect information regarding committees considering the bill from scrapeBill
object.
-
collectSubject
Collect information regarding subject field of the bill from scrapeBill
object.
-
collectText
Collect information regarding the latest full text of the bill from scrapeBill
object.
Updates Log
- 06/21/2019 Version 0.0.1.001 Adding searchBill and small change in collectAction output.
- 03/19/2019 Version 0.0.0.003 bug fix and add BillIDfromURL function
- 03/19/2019 Version 0.0.0.002 bug fix and adding getBill function
- 03/18/2019 Version 0.0.0.001 released