Request the holders of posts in specific departments by department ID.

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

Arguments

department_id

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

bench

Flag to return either Government or Opposition information. This parameter is case insensitive, so both 'Opposition' and 'opposition' will return the same data. Defaults to 'Government'.

former

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

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.

Examples

if (FALSE) {
x <- mnis_department(department_id = 0, bench = "Government", former = TRUE)
}