parse_bill_sponsor: Parse bill sponsor information

Description Usage Arguments Details Value Examples

View source: R/parse_bill_sponsor.R

Description

Parse bill sponsor information from local json or API response and return a data frame.

Usage

1

Arguments

bill

Path to bill json file or list objected returned from get_bill

Details

Sponsor type is represented in numeric id. See lookup table for description.

Value

A data frame of 9 columns. For more details, see documentation.

Examples

1
2
3
HB1 <- system.file("extdata", "bill/HB1.json", package = "legiscanrr")
HB1 <- parse_bill_sponsor(HB1)
str(HB1)

fanghuiz/legiscanrr documentation built on Jan. 13, 2020, 4:51 a.m.