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

parse_bill_progress(bill)

Arguments

bill

Path to bill json file or list objected returned from get_bill

Value

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

Details

Progress event is represented in numeric id. See lookup table for description.

Examples

HB1 <- system.file("extdata", "bill/HB1.json", package = "legiscanrr") HB1 <- parse_bill_progress(HB1) str(HB1)
#> Classes ‘tbl_df’, ‘tbl’ and 'data.frame': 6 obs. of 3 variables: #> $ date : chr "2011-01-18" "2011-01-18" "2011-03-16" "2011-04-07" ... #> $ event : int 1 9 11 10 2 9 #> $ bill_id: int 230084 230084 230084 230084 230084 230084