scrapeBill Object.collectAction.RdCollect information regarding action(s) made on the bill.
collectAction(x, latestonly = TRUE, progress = FALSE)
| x | A (or A list of) |
|---|---|
| latestonly | If |
| progress | If |
If latestonly==TRUE, returns data.frame object with following
contents (single row):
IntroducedDate: Date of Introduction in Actions Overview
ActLatestDate_Overview: Date of Latest Action in Actions Overview
ActLatestText_Overview: Overview Content of Latest Action in Actions Overview
ActLatestDate_All: Date of Latest Action in All Actions
ActLatestText_All: Detailed Content of Latest Action in All Actions
VoteTimes_House: Number of Voting Opportunities in House
VoteLatestDate_House: Date of Latest Vote Action in House
VoteLatestType_House: Type of Latest Vote in House
VoteLatestText_House: Content of Latest Vote in House
VoteTimes_Senate: Number of Voting Opportunities in Senate
VoteLatestDate_Senate: Date of Latest Action in Senate
VoteLatestType_Senate: Type of Latest Vote in Senate
VoteLatestText_Senate: Content of Latest Vote in Senate
RCTimes_House: Number of Roll Call Voting Opportunities in House
RCLatestDate_House: Date of Latest Roll Call in House
RCLatestText_House: Content of Latest Roll Call Vote in House
RCLatestNumber_House: ID Number of Latest Roll Call Vote in House
RCLatestYea_House: Number of Yea in Latest Roll Call Vote in House
RCLatestNay_House: Number of Nay in Latest Roll Call Vote in House
RCTimes_Senate: Number of Roll Call Voting Opportunities in Senate
RCLatestDate_Senate: Date of Latest Roll Call in Senate
RCLatestText_Senate: Content of Latest Roll Call Vote in Senate
RCLatestNumber_Senate: ID Number of Latest Roll Call Vote in Senate
RCLatestYea_Senate: Number of Yea in Latest Roll Call Vote in Senate
RCLatestNay_Senate: Number of Nay in Latest Roll Call Vote in Senate
If latestonly==FALSE, A data.frame object containing following variables:
Chamber: Chamber where the Action is Placed.
Date: Date of Action
Time: Time (in Day) of Action
Detail: Detailed Content of Action
Overview: Summarized Overview Content of Action (If Available)
Amendment: 1 if Actions is related to amendment of the bill
VoteType: Type of Vote (if any decision is made)
rollnumber: Roll Call Number if Action is Roll Call Vote
rollYea: Roll Call Yea Votes if Action is Roll Call Vote
rollNay: Roll Call Nay Votes if Action is Roll Call Vote
tgturl <- "https://www.congress.gov/bill/115th-congress/house-bill/2" bill2 <- scrapeBill(tgturl) collectAction(bill2)#> IntroducedDate ActLatestDate_Overview ActLatestText_Overview #> 1 04/12/2018 12/20/2018 Became Law #> ActLatestDate_All ActLatestText_All VoteTimes_House #> 1 12/20/2018 Became Public Law No: 115-334. 0 #> VoteLatestDate_House VoteLatestType_House VoteLatestText_House #> 1 <NA> <NA> <NA> #> VoteTimes_Senate VoteLatestDate_Senate VoteLatestType_Senate #> 1 0 <NA> <NA> #> VoteLatestText_Senate VoteTimes_House.1 RCLatestDate_House RCLatestText_House #> 1 <NA> 0 <NA> <NA> #> RCLatestNumber_House RCLatestYea_House RCLatestNay_House RCTimes_Senate #> 1 NA NA NA 0 #> RCLatestDate_Senate RCLatestText_Senate RCLatestNumber_Senate #> 1 <NA> <NA> NA #> RCLatestYea_Senate RCLatestNay_Senate #> 1 NA NA