Parse individual legislator's vote in each roll call from local json. (support for parsing from API response not yet available.)

parse_person_vote(vote_json)

Arguments

vote_json

Path to vote json file

Value

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

Examples

vote <- system.file("extdata", "vote/154366.json", package = "legiscanrr") vote <- parse_person_vote(vote) str(vote)
#> Classes ‘tbl_df’, ‘tbl’ and 'data.frame': 30 obs. of 4 variables: #> $ people_id : int 8641 8642 8651 8652 8661 8663 8667 8668 8674 8675 ... #> $ vote_id : int 1 1 1 1 1 1 1 1 1 1 ... #> $ vote_text : chr "Yea" "Yea" "Yea" "Yea" ... #> $ roll_call_id: int 154366 154366 154366 154366 154366 154366 154366 154366 154366 154366 ...