cham_votes: Downloads votes of a specific bill by providing type, number...

Description Usage Arguments Value Note Author(s) Examples

View source: R/cham_votes.R

Description

Downloads votes of a specific bill by providing type, number and year. A bill can have more than one roll call, and the API does not provide an id to identify them So we provide one (rollcall_id).

Usage

1
cham_votes(type, number, year, ascii = TRUE)

Arguments

type

character. The type of the bill. For example, "PL" for law proposal ("projeto de lei"), "PEC" for constitutional amendments ("projeto de emenda constitucional"), "PDC" for legislative decree ("decreto legislativo"), and "PLP" for supplementary laws ("projeto de lei complementar).

number

integer. The number of the bill.

year

integer. The year of the bill.

ascii

logical. If TRUE, certain strings are converted to ascii format.

Value

A tibble, of classes tbl_df, tbl and data.frame.

Note

Requesting data from a long period of time with details = TRUE will return a large object in terms of memory. It will also be rather unwieldy, with many columns.

Author(s)

Robert Myles McDonnell, Guilherme Jardim Duarte & Danilo Freire.

Examples

1
cham_votes(type = "PL", number = "1992", year = "2007")

congressbr documentation built on Dec. 16, 2019, 1:21 a.m.