Hostname: page-component-76d6cb85b7-lrvh5 Total loading time: 0 Render date: 2026-07-10T16:33:53.728Z Has data issue: false hasContentIssue false

Congressbr: An R Package for Analyzing Data from Brazil’s Chamber of Deputies and Federal Senate

Published online by Cambridge University Press:  02 January 2022

Robert Myles McDonnell
Affiliation:
First Data Corporation, BR
Guilherme Jardim Duarte
Affiliation:
JOTA, BR
Danilo Freire*
Affiliation:
Brown University, US
Rights & Permissions [Opens in a new window]

Abstract

In this research note, we introduce congressbr, an R package for retrieving data from the Brazilian houses of legislature. The package contains easy-to-use functions that allow researchers to query the Application Programming Interfaces of Brazil’s Chamber of Deputies and the Federal Senate, perform cleaning data operations, and store information in a format convenient for future analyses, making a previously difficult task fast and convenient. Congressbr downloads data on legislators, submitted and ratified law proposals, Senate and Chamber commissions, and other information of interest to social scientists across various fields. We outline the main features of the package and demonstrate its use with practical examples.

Nesta nota de pesquisa, apresentamos o congressbr, um pacote para R para obtenção de dados das duas casas legislativas do Brasil. O pacote contém funções intuitivas que permitem aos pesquisadores fazer buscas no API da Câmara de Deputados e do Senado Federal brasileiros, realizar tarefas de limpeza de dados, e gravar informações em um formato adequado para análises futuras, simplificando tarefas anteriormente difíceis. O congressbr baixa dados sobre legisladores, projetos de lei submetidos e aprovados, comissões na Câmara e no Senado, além de outras informações de interesse para cientistas sociais de diversas áreas. Trazemos uma breve exposição das características principais do pacote e demostramos como usá-lo por meio de exemplos práticos.

Information

Type
Research note
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an open-access article distributed under the terms of the Creative Commons Attribution 4.0 International License (CC-BY 4.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited. See http://creativecommons.org/licenses/by/4.0/.
Copyright
Copyright: © 2019 The Author(s)
Figure 0

Figure 1 Number of parties by year in the Chamber of Deputies, 1991–2017.

Figure 1

Table 1 The output of function sen_commissions().

Figure 2

Figure 2 The Rice Index for major parties in the Chamber of Deputies, 1990–2010.

Figure 3

Figure 3 Differences in senators’ ideal points between the Rousseff and Temer administrations.

Supplementary material: PDF

McDonnell et al supplementary material

McDonnell et al supplementary material
Download McDonnell et al supplementary material(PDF)
PDF 315.7 KB