collectSubject: Collecting Subject Information from a 'scrapeBill' Object.

Description Usage Arguments Value See Also Examples

View source: R/collectBillData.R

Description

Collect information regarding subject field of the bill.

Usage

1
collectSubject(x, single = TRUE, progress = FALSE)

Arguments

x

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

single

If TRUE (default), the function returns single row output (see below). If FALSE, long format data.frame object with separate subject fields as rows.

progress

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

Value

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

If single==FALSE, A data.frame object containing following variables (rows represent each subject filed):

See Also

scrapeBill and getscrapeBill

Examples

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

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