collectBillData: Collecting Bill Information from a 'scrapeBill' Object.

Description Usage Arguments Value See Also Examples

View source: R/collectBillData.R

Description

Collect Bill Information and Put Into Data Frame.

Usage

1
2
3
collectBillData(x, include = c("BillID", "URL", "Title", "Summary",
  "Sponsorship", "Action", "Committee", "Subject"), expand = "None",
  progress = FALSE)

Arguments

x

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

include

character vector of What element(s) of bill information to include in output. Options are "BillID", "URL", "Title", "Summary", "Sponsorship", "Action", "Committee", "Subject", and "Text". The default is to include everything except for "Text". Need at least one element. Information set by this option uses single row output (i.e., Set officialonly, latestonly, single, and allinone to TRUE in collectOPTION functions).

expand

The default is "None" (not to expand data). Else, create long data by using expanded information (i.e., Set officialonly, latestonly, single, and allinone to FALSE in collectOPTION functions). Choose option from ONE of "Title", "Summary", "Sponsorship", "Action", "Committee", "Subject", and "Text". CANNOT set more than one option.

progress

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

Value

A data.frame object of bill information. See functions in See Also section for variable details.

See Also

collectBillID, collectTitle, collectSummary, collectSponsorship, collectAction, collectCommittee, collectSubject, collectText, scrapeBill, and getscrapeBill

Examples

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

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