Parse roll call votes for a bill from local json. (support for parsing from API response not yet available.)

parse_rollcall_vote(vote_json)

Arguments

vote_json

Path to vote json file

Value

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

Examples

vote <- system.file("extdata", "vote/154366.json", package = "legiscanrr") vote <- parse_rollcall_vote(vote) str(vote)
#> Classes ‘tbl_df’, ‘tbl’ and 'data.frame': 1 obs. of 12 variables: #> $ roll_call_id: int 154366 #> $ bill_id : int 395975 #> $ date : chr "2012-02-14" #> $ desc : chr "S Introduced and Referred to S10" #> $ yea : int 30 #> $ nay : int 0 #> $ nv : int 0 #> $ absent : int 0 #> $ total : int 30 #> $ passed : int 1 #> $ chamber : chr "S" #> $ chamber_id : int 102