View source: R/get_proposal_votes.R
get_proposal_votes | R Documentation |
A function for retrieving all votes from a specific vote proposal. Vote data are only available from the 2011-2012 session
get_proposal_votes(voteid = NA, good_manners = 0)
voteid |
Character string indicating the id of the vote to request all votes from |
good_manners |
Integer. Seconds delay between calls when making multiple calls to the same function |
A list with two elements:
$proposal_vote (main data on the vote proposal)
response_date | Date of data retrieval |
version | Data version from the API |
vote_id | Id of the vote |
$proposal_by_parties${proposal_id} (what parties (id) stood behind proposal(s))
get_vote get_decision_votes get_result_vote
## Not run:
prop <- get_proposal_votes(7523)
prop
for(i in 1:length(prop$proposal_by_parties)){
prop$proposal_vote$parties[i] <- paste0(prop$proposal_by_parties[[i]],
collapse = ", ")
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.