Learn R Programming

congressbr (version 0.2.2)

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

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

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.

Examples

Run this code
# NOT RUN {
cham_votes(type = "PL", number = "1992", year = "2007")
# }

Run the code above in your browser using DataLab