R/get_repsandsenate.R
get_reps_senate.Rd
`get_reps_senate()` generates a dataset for members' service time for the Australian House of Representatives, the Australian Senate, or a joined dataset containing values for both the HoR and Senate. Additionally, will produce a set of arguments that can be used as request codes for the individual datasets.
get_reps_senate(x)
x | A character string used to request a printout of the request code arguments, *see Request Codes* below, or one of three prepared datasets. |
---|
A console printout of a tibble containing arguments to be used with the function,
or the requested dataset using x
assigned to a user created variable.
There are four request codes: `reps_senate`, `reps`, `senate` and `codes`.
The specifics of these are:
- `reps_senate` - generates a dataset of HoRs and Senate members; - `reps` - generates a dataset of HoRs members; - `senate` - generates a dataset of Senate members; and - `codes` - returns a tibble of codes used to request data.
An incorrect request code (an argument not associated with a dataset or non-character string argument) will stop function processes and return an error message.