mnis_department: Request data on the holders of cabinet/shadow cabinet...

Description Usage Arguments Value See Also Examples

View source: R/mnis_department.R

Description

Request data on the holders of cabinet/shadow cabinet positions. Request specific departments by department ID (see mnis_reference for the ref_department function to retrieve departmental IDs).

Usage

1
2
mnis_department(department_id = 0, bench = "Government", former = TRUE,
  tidy = TRUE, tidy_style = "snake_case")

Arguments

department_id

The department look up. 0 returns the cabinet/shadow cabinet, -1 returns a list of all ministers. Defaults to 0.

bench

Flag to return either Government or Opposition information. Defaults to 'Government'. The API is case sensitive on this parameter, so 'Government' or 'Opposition' will work, but 'government' and 'opposition' will not.

former

Flag to include both current and former ministers/shadow ministers. Defaults to TRUE. If FALSE, only includes current ministers/shadow ministers.

tidy

If TRUE, fixes the variable names in the tibble to remove non-alphanumeric characters and superfluous text, and convert to a consistent style. Defaults to TRUE.

tidy_style

The style to convert variable names to, if tidy=TRUE. Accepts one of "snake_case", "camelCase" and "period.case". Defaults to "snake_case".

Value

A tibble with information on departments and ministers/shadow ministers.

See Also

mnis_reference

Examples

1
2
3
4
5
6
## Not run: 

x <- mnis_department(department_id = 0, bench = 'Government', former=TRUE)


## End(Not run)

mnis documentation built on May 2, 2019, 11:02 a.m.