collectTitle: Collecting Bill Title(s) from a 'scrapeBill' Object.

Description Usage Arguments Value See Also Examples

View source: R/collectBillData.R

Description

Collect information regarding title(s) of the bill.

Usage

1
collectTitle(x, officialonly = TRUE, progress = FALSE)

Arguments

x

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

officialonly

If TRUE (default), the function returns the the text of the official title as introduced. If FALSE, the function returns the data.frame object of all published official and short titles and their published timings.

progress

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

Value

A character vector or data.frame list with bill title information.

See Also

scrapeBill and getscrapeBill

Examples

1
2
3
tgturl <- "https://www.congress.gov/bill/109th-congress/house-bill/247"
bill247 <- scrapeBill(tgturl)
collectTitle(bill247)

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