as.rollcall: Transform into rollcall object

Description Usage Arguments Value Methods (by class) Examples

View source: R/as.rollcall.R

Description

Transform into rollcall object

Usage

1
2
3
4
as.rollcall(x, ...)

## S3 method for class 'voteList'
as.rollcall(x, yea = 1, nay = 0, missing = c(3, 7, 8), notInLegis = 9, ...)

Arguments

x

Object to be transformed

...

Other parameters (ignored)

yea

numeric, possibly a vector, code(s) for a Yea vote. Default is 1.

nay

numeric, possibly a vector, code(s) for a Nay vote. Default is 0.

missing

numeric or NA, possibly a vector, code(s) for missing data. Default is NA.

notInLegis

numeric or NA, possibly a vector, code(s) for the legislator not being in the legislature when a particular roll call was recorded (e.g., deceased, retired, yet to be elected).

Value

Rollcall object from package 'pscl'

Methods (by class)

Examples

1

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