Description Usage Arguments Author(s) Examples
View source: R/vote_to_rollcall.R
Returns votes from the Senate or Chamber of Deputies in a format that can be easily used with other R packages (wnominate, pscl, MCMCpack) or with other modelling languages such as JAGS.
1 | vote_to_rollcall(votes = NULL, legislators = NULL, bills = NULL, ideal = TRUE)
|
votes |
|
legislators |
This may be a vector of legislator names or id numbers. |
bills |
A vector of bill numbers or ids. |
ideal |
If TRUE, the default, returns a |
Robert Myles McDonnell, Guilherme Jardim Duarte & Danilo Freire.
1 2 3 4 5 6 7 | # get votes:
data(sen_nominal_votes)
votes <- sen_nominal_votes %>%
dplyr::filter(vote_date >= "2005-03-01", vote_date <= "2007-12-15")
rc <- vote_to_rollcall(votes$senator_vote,
legislators = votes$senator_name,
bills = votes$bill_id)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.