Parse bill sponsor information from local json. (support for parsing from API response not yet available.)

parse_people(people_json)

Arguments

people_json

Path to people json file

Value

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

Examples

person_8630 <- system.file("extdata", "people/8630.json", package = "legiscanrr") person_8630 <- parse_people(person_8630) str(person_8630)
#> Classes ‘tbl_df’, ‘tbl’ and 'data.frame': 1 obs. of 20 variables: #> $ people_id : int 8630 #> $ person_hash : chr "w9wdpz37" #> $ state_id : int 50 #> $ party_id : chr "0" #> $ party : chr "" #> $ role_id : int 3 #> $ role : chr "Jnt" #> $ name : chr "Agriculture, State and Public Lands and Water Resources" #> $ first_name : chr "" #> $ middle_name : chr "" #> $ last_name : chr "" #> $ suffix : chr "" #> $ nickname : chr "" #> $ district : chr "" #> $ ftm_eid : chr "0" #> $ votesmart_id : int 0 #> $ opensecrets_id : chr "" #> $ ballotpedia : chr "" #> $ committee_sponsor: int 1 #> $ committee_id : int 1631