Parse bill meta-data from local json or API response and return a data frame.

parse_bill(bill)

Arguments

bill

Path to bill json file or list objected returned from get_bill

Value

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

Examples

HB1 <- system.file("extdata", "bill/HB1.json", package = "legiscanrr") HB1 <- parse_bill(HB1) str(HB1)
#> Classes ‘tbl_df’, ‘tbl’ and 'data.frame': 1 obs. of 24 variables: #> $ bill_id : int 230084 #> $ change_hash : chr "38558907f12c02a238b1cd43d2a37393" #> $ url : chr "https://legiscan.com/AK/bill/HB1/2011" #> $ state_link : chr "http://www.legis.state.ak.us/basis/get_bill.asp?session=27&bill=HB1" #> $ status : int 2 #> $ status_date : chr "2011-04-11" #> $ state : chr "AK" #> $ state_id : int 2 #> $ bill_number : chr "HB1" #> $ bill_type : chr "B" #> $ bill_type_id : chr "1" #> $ body : chr "H" #> $ body_id : int 13 #> $ current_body : chr "S" #> $ current_body_id : int 14 #> $ title : chr "Policy For Securing Health Care Services" #> $ description : chr "An Act stating a public policy that allows a person to accept or decline any offered mode of securing health care services." #> $ pending_committee_id: int 2144 #> $ session_id : int 122 #> $ session_name : chr "27th Legislature" #> $ session_title : chr "27th Legislature" #> $ year_start : int 2011 #> $ year_end : int 2012 #> $ special : int 0