collectAction: Collecting Action Information from a 'scrapeBill' Object.

Description Usage Arguments Value See Also Examples

View source: R/collectBillData.R

Description

Collect information regarding action(s) made on the bill.

Usage

1
collectAction(x, latestonly = TRUE, progress = FALSE)

Arguments

x

A (or A list of) scrapeBill object created by scrapeBill function.

latestonly

If TRUE (default), the function returns summary of latest actions (and introduced date) in single row. If FALSE, the function returns data.frame object of all actions and their dates and timings.

progress

If TRUE, show progress bar for the processing of multiple bills.

Value

If latestonly==TRUE, returns data.frame object with following contents (single row):

If latestonly==FALSE, A data.frame object containing following variables:

See Also

scrapeBill and getscrapeBill

Examples

1
2
3
4
tgturl <- "https://www.congress.gov/bill/115th-congress/house-bill/2"
bill2 <- scrapeBill(tgturl)
collectAction(bill2)
 

gentok/congressbills documentation built on Jan. 21, 2020, 5:37 a.m.