sen_senator: Downloads and tidies persnonal information on senators from...

Description Usage Arguments Value Note Author(s) Examples

View source: R/sen_senator.R

Description

Downloads and tidies personal information on senators from the Federal Senate.

Usage

1
2
3
4
5
6
7
sen_senator(
  id = NULL,
  affiliations = TRUE,
  mandates = TRUE,
  absences = FALSE,
  ascii = TRUE
)

Arguments

id

integer. Unique id for a senator. A dataframe of these is available from sen_senator_list().

affiliations

logical. If TRUE, the default, returns information on party affiliation.

mandates

logical. If TRUE, the default, returns information on terms served by the senator.

absences

logical. If TRUE, returns information on leaves of absence taken by the senator.

ascii

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

Value

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

Note

Setting affiliations, mandates and particularly absences to TRUE will result in a rather bloated data frame.

Author(s)

Robert Myles McDonnell, Guilherme Jardim Duarte & Danilo Freire.

Examples

1
2
3
benedito <- sen_senator(id = 3823)
aecio <- sen_senator(id = 391, absences = TRUE)
juc <- sen_senator(73)

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