Description Usage Arguments Examples
View source: R/voteToRollcall.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 | voteToRollcall(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 |
1 2 3 4 5 6 7 | # get votes:
# data(cam_nominal_votes)
# votes <- cam_nominal_votes %>%
# dplyr::filter(vote_date >= "2005-03-01", vote_date <= "2007-12-15")
# rc <- voteToRollcall(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.