Description Usage Arguments Value Methods (by class) Examples
Add information on party characteristics to voteList or questionerList object. This data is obtained from ParlGov (http://www.parlgov.org/).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | addPartyInfo(x, ...)
## S3 method for class 'voteList'
addPartyInfo(
x,
includetype = "basic",
addto = c("voteList", "sponsorList", "votePerParty"),
...
)
## S3 method for class 'questionList'
addPartyInfo(
x,
includetype = "basic",
addto = c("questionerList", "responderList"),
...
)
|
x |
A voteList object |
... |
Other parameters passed on. |
includetype |
A charcter value, "basic" or "all". Defaults to "basic". Basic only includes party characteristics that vary by date, while all includes all party characteristics. |
addto |
Character vector including the subtables to which party information should be added. Defaults to c("voteList", "sponsorList","votePerParty") vote a voteList object or c("questionerList", "responderList") for a questionList object. |
A voteList or questionList object.
voteList
: Party characteristics for voteList object
questionList
: Party characteristics for questionList object. Information for questioners refers to the day the question was asked, for the responders it pertains to the day the response was given.
1 | examplevotes_with_partyinfo <- addPartyInfo(examplevotes)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.