sen_bills: Downloads and tidies information on the legislation in the...

Description Usage Arguments Value Author(s) Examples

View source: R/sen_bills.R

Description

Downloads and tidies information on the legislation in the Federal Senate.

Usage

1
2
3
4
5
6
7
sen_bills(
  bill_id = NULL,
  type = NULL,
  number = NULL,
  year = NULL,
  ascii = TRUE
)

Arguments

bill_id

integer. This number is the id given to each bill in the Senate database. For example, running sen_bills_current() will return a dataframe with the variable bill_id in the first column. These numbers can be used as this id. If id is not NULL (the default), all other parameters will be set to NULL, as 'bill_id' cannot be used in conjunction with the other parameters. If any one of the other parameters are used (without using bill_id), all three need to be used.

type

character. The abbreviation of the vote type you're looking for. A full list of these can be obtained with the sen_bill_list() function. Other types can be seen with sen_bills_subtypes().

number

. Bill number. Simple integer, like 2, which will be bill number 00002.

year

integer. Four-digit year, such as 2013.

ascii

logical. If TRUE, strips Latin characters from strings.

Value

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

Author(s)

Robert Myles McDonnell, Guilherme Jardim Duarte & Danilo Freire.

Examples

1
2
3
4
5
pls_5_2010 <- sen_bills(type = "PLS", number = 5, year = 2010)

# Get info on the first bill in the dataframe returned
# by sen_bills_current(), which has an id of 25:
sen25 <- sen_bills(bill_id = 25)

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