Learn R Programming

congressbr (version 0.2.2)

sen_senator: Downloads and tidies persnonal information on senators from the Federal Senate

Description

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

Usage

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.

Examples

Run this code
# NOT RUN {
benedito <- sen_senator(id = 3823)
aecio <- sen_senator(id = 391, absences = TRUE)
juc <- sen_senator(73)
# }

Run the code above in your browser using DataLab