Parse bill progress data from local json or API response and return a data frame.
parse_bill_progress(bill)
bill | Path to bill json file or list objected returned from
|
---|
A data frame of 3 columns. For more details, see documentation.
Progress event is represented in numeric id. See lookup table for description.
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