knitr::opts_chunk$set( collapse = TRUE, comment = "#>", warning = FALSE, message = FALSE )
library(legiscanrr) library(dplyr)
Bill meta-data. Returned from parse_bill()
function.
bill_id
: Internal identifier for bill used by LegiScan.change_hash
: MD5 hash of bill detail informationurl
: LegiScan URL for bill detailstate_link
: State legislature URL for bill detailstatus
: Final status of the bill. Numeric id, See lookup table vignette for descriptions.status_date
: Date of final statusstate
: Abbreviation of the Statestate_id
: Internal identifier for state. (note: 1-50 for states, 51-DC, 52-Congress)bill_number
: Bill number as assigned in legislative session. Not unique identifier. Only unique within state-session.bill_type
: Type of the bill instrument text. See lookup table vignette for descriptions.bill_type_id
: See above above. body
: Originating body/chamber for the billbody_id
: Internal identifier for bodycurrent_body
: Current body/chambercurrent_body_id
: Internal identifier for bodytitle
: Short title of bill description
: Long title and description of billpending_committee_id
: Internal identifier for committeesession_id
: Internal identifier for legislative sessionsession_name
: Session namesession_title
: Normalized session titleyear_start
: Starting year of the sessionyear_end
: Ending year of the sessionspecial
: Flag for special sessions (0, 1)HB1 <- system.file("extdata", "bill/HB1.json", package = "legiscanrr") parse_bill(HB1) %>% rmarkdown::paged_table()
Bill text information. Returned from get_bill_text()
. See decode_bill_text()
and vignette for how to retrieve text from the base64 encoded document.
doc_id
: Internal identifier for bill text documentbill_id
: Internal identifier for billdate
: Date of text (if available)type
: Type of draft text. See lookup table vignette for descriptions.type_id
: Internal identifier for bill text typedoc
: Base64 encoded documentget_bill_text(doc_id = 1877162)
Returned from parse_bill_progress()
function. Includes important event only. Not complete action history.
date
: Progress event dateevent
: Internal identifier for progress event type id. See lookup table vignette for descriptions.bill_id
: Internal identifier for billparse_bill_progress(HB1) %>% rmarkdown::paged_table()
Returned from parse_bill_sponsor()
.
people_id
: Internal identifier for legislatorparty_id
: Internal identifier for partyparty
: Legislator party affiliationname
: Legislator full namesponsor_type_id
: Internal identifier for sponsor type. See lookup table vignette for descriptions.sponsor_order
: Index of order in sponsorship listcommittee_sponsor
: Flag for committee sponsor (0, 1)committee_id
: Internal identifier for committeebill_id
: Internal identifier for billparse_bill_sponsor(HB1) %>% rmarkdown::paged_table()
Returned from parse_people()
.
people_id
: Internal identifier for legislatorperson_hash
: MD5 hash for legislator personal detail informationstate_id
: Internal identifier for stateparty_id
: Internal identifier for partyparty
: Legislator party affiliationrole_id
: Internal identifier for legislator role role
: Legislator role (e.g. representative, senator)name
: Legislator full namefirst_name
vmiddle_name
last_name
suffix
nickname
district
: Legislative districtftm_eid
: FollowTheMoney.org EIDvotesmart_id
: VoteSmart.org IDopensecrets_id
: OpenSecrets.org ID (Congress Only)ballotpedia
: Ballotpedia namecommittee_sponsor
: Flag for committee sponsor (0, 1)committee_id
: Internal identifier for committeeperson_8630 <- system.file("extdata", "people/8630.json", package = "legiscanrr") parse_people(person_8630) %>% rmarkdown::paged_table()
Returned from parse_person_vote()
.
people_id
: Internal identifier for legislatorvote_id
: Numeric id for votevote_text
: Description of vote (Yea/Nay/Abstain/Absent)roll_call_id
: Internal identifier for roll call votevote_154366 <- system.file("extdata", "vote/154366.json", package = "legiscanrr") parse_person_vote(vote_154366) %>% rmarkdown::paged_table()
Returned from parse_rollcall_vote()
.
roll_call_id
: Internal identifier for roll call votebill_id
: Internal identifier for billdate
: Vote datedesc
: Description of voteyea
: Count of Yea votesnay
: Count of Nay votesnv
: Count of not voting/abstainabsent
: Count of absentstotal
: Total number of votespassed
: Vote passage (0, 1)chamber
: Chamber of votechamber_id
: Internal identifier for chamberparse_rollcall_vote(vote_154366) %>% rmarkdown::paged_table()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.