Description Usage Arguments Value See Also Examples
View source: R/collectBillData.R
Collect information regarding subject field of the bill.
1 | collectSubject(x, single = TRUE, progress = FALSE)
|
x |
A (or A list of) |
single |
If |
progress |
If |
If single==TRUE
, returns data.frame
object with
following information (single row):
Subject_Primary
: Primary Subject Field of the Bill
SUbject_N
: Number of Subject Fields Assigned to the Bill
Subject_All
: All Subject Fields divided by ";"
If single==FALSE
, A data.frame
object containing following variables
(rows represent each subject filed):
ID
: Bill ID
Subject
: Name of Subject Field
Rank
: The order of subject fields as presented in website. 1 indicates primary subject.
1 2 3 | tgturl <- "https://www.congress.gov/bill/116th-congress/senate-bill/252"
bill252 <- scrapeBill(tgturl)
collectSubject(bill252)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.