collectText: Collecting Text Information from a 'scrapeBill' Object.

Description Usage Arguments Value See Also Examples

View source: R/collectBillData.R

Description

Collect information regarding the latest full text of the bill.

Usage

1
collectText(x, allinone = TRUE, progress = FALSE)

Arguments

x

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

allinone

If TRUE (default), the function returns all texts of bill into one character scalar. If FALSE, the function separates text by potential sections and exported as list.

progress

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

Value

A character or list object of Bill Texts.

See Also

scrapeBill and getscrapeBill

Examples

1
2
3
tgturl <- "https://www.congress.gov/bill/116th-congress/senate-bill/252"
bill252 <- scrapeBill(tgturl)
collectText(bill252)

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