addPartyInfo: Add information on party characteristics to voteList or...

Description Usage Arguments Value Methods (by class) Examples

View source: R/addInfo.R

Description

Add information on party characteristics to voteList or questionerList object. This data is obtained from ParlGov (http://www.parlgov.org/).

Usage

 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"),
  ...
)

Arguments

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.

Value

A voteList or questionList object.

Methods (by class)

Examples

1
examplevotes_with_partyinfo <- addPartyInfo(examplevotes)

louwerse/dutchparl documentation built on Aug. 14, 2021, 3:02 a.m.