Description Usage Arguments Value See Also Examples
View source: R/collectBillData.R
Collect information regarding sponsorship of the bill.
1 | collectSponsorship(x, single = TRUE, progress = FALSE)
|
x |
A (or A list of) |
single |
Whether to export single row results (see following description).
The default is |
progress |
If |
If single==TRUE, returns data.frame object with
following variables (single row):
Sp_Chamber: Chamber of Primary Sponsor
Sp_Name: Full Name of Primary Sponsor
Sp_LastName: Last Name of Primary Sponsor
Sp_Party: Party of Primary Sponsor
Sp_State: State of Primary Sponsor
Sp_District: District of Primary Sponsor (Only for House Representatives)
Cosp_N: Total Number of Cosponsors
Cosp_Original: Number of Original Cosponsors
Cosp_D: Number of Democratic Cosponsors
Cosp_R: Number of Republican Cosponsors
If single==FALSE, data.frame object with following
variables (rows represent sponsors):
Date: Date of Sponsorship. If Primary Sponsor, this is the bill introduction date.
Status: Status of Sponsorship. One of "Primary Sponsor," "Original Cosponsor," and "Cosponsor."
Chamber: Chamber of Sponsor
Name: Full Name of Sponsor
LastName: Last Name of Sponsor
Party: Party of Sponsor
State: State of Sponsor
District: District of Sponsor (Only for House Representatives)
1 2 3 | tgturl <- "https://www.congress.gov/bill/109th-congress/house-bill/19"
bill19 <- scrapeBill(tgturl)
collectSponsorship(bill19)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.