cham_bills: Downloads and tidies data for lists of bills in Brazilian...

Description Usage Arguments Value Author(s) Examples

View source: R/cham_bills.R

Description

Downloads and tidies data for lists of bills in Brazilian Chamber of Deputies

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
cham_bills(
  type = "",
  number = "",
  year = "",
  initial_date = "",
  end_date = "",
  part_name_author = "",
  id_type_author = "",
  abbreviation_party_author = "",
  abbreviation_st_author = "",
  gender_author = "",
  cod_state = "",
  cod_branch_state = "",
  still = "",
  ascii = T
)

Arguments

type

character. The type of the bill. For example, "PL".

number

integer. The number of the bill

year

integer. The year of the bill.

initial_date

(character) start date of the period requested. This parameter must be in the format YYYY-MM-DD (Year-Month-Day).

end_date

(character) final date for period requested. Format YYYYMMDD.

part_name_author

(character). Filter bills by a part of the author's name

id_type_author

(character). Filter bills by type of a branch_author for the bill.

abbreviation_party_author

(character). Filter bills by the party of the author

abbreviation_st_author

(character). Filter bills by the state of the author

gender_author

(character). If "M", bills proposed by male authors are filtered. If "F", female authors. If empty, every bill is included.

cod_state

(integer). Filter bills by a part of the author's name

cod_branch_state

(integer). Filter by the id of the branch regarding the bill.

still

(integer). If 1, only bills that are still being discussed are included. If 2, only ended bills. If empty, every bill is included.

ascii

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

Value

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

Author(s)

Robert Myles McDonnell, Guilherme Jardim Duarte & Danilo Freire.

Examples

1
cham_bills(type = "PL", year = 2011, number = 2718, initial_date="2011-16-11")

RobertMyles/congressbr documentation built on July 18, 2020, 4:04 a.m.