getBill: Get Bill URL or HTML by Bill Number

Description Usage Arguments Value See Also Examples

View source: R/scrapeBill.R

Description

Get Bill Suummary Page URL or scrapeBill object by Bill Number and Congress Number.

Usage

1
2
3
4
5
6
7
8
getBill(number, congress, chamber = "House", type = "Bill",
  out = "URL")

getscrapeBill(number, congress, chamber = "House", type = "Bill")

getBillDF(infoDF, out = "URL", progress = FALSE)

getscrapeBillDF(infoDF, progress = TRUE)

Arguments

number

numeric scalar of Bill number

congress

numeric scalar of Congress number

chamber

Choose from "House" (default) or "Senate"

type

Choose from "Bill" (default), "Simple Resolution", "Joint Resolution", "Concurrent Resolution", and "Amendment"

out

The output type. "URL" (default) to export bill summary page URL and "scrapeBill" to export "scrapeBill" object.

infoDF

(Only used in getBillDF function) data.frame object with columns number, congress, chamber, and type. Rows should represent individual bills.

progress

(Only used in getBillDF function) If TRUE, show progress bar for the processing of multiple bills.

Value

character scalar of URL or "scrapeBill" object.

See Also

scrapeBill, read_scrapeBill, and write_scrapeBill

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
a <- getBill(1, 103)
b <- scrapeBill(a)
collectBillID(b)

a <- getBill(1, 103, "Senate", "Joint Resolution")
b <- scrapeBill(a)
collectBillID(b)

a <- getBill(1, 101, out="scrapeBill")
collectBillID(a)

a <- data.frame(number = c(1,2,3,4),
                congress = c(103,104,108,109),
                chamber = "House",
                type = "Bill")
b <- getBillDF(a, out="scrapeBill")
collectBillID(b)
                

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