scrapeBill Object.collectSubject.RdCollect information regarding subject field of the bill.
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.
tgturl <- "https://www.congress.gov/bill/116th-congress/senate-bill/252" bill252 <- scrapeBill(tgturl) collectSubject(bill252)#> Subject_Primary Subject_N Subject_All #> 1 Private Legislation 1 Private Legislation