Description Usage Arguments Details Value See Also Examples
'get_auspol()' downloads a requested Australian politicians .csv dataset using an associated argument.
1 |
df |
A character string used to request an Australian politicians dataset. *See Request Codes* below. |
There are four request codes: 'all', 'allbyparty', 'mps' and 'senators'.
The specifics of these are:
- 'all' requests the australian_politicians-all.csv dataset. - 'allbyparty' requests the australian_politicians-all-by_party.csv dataset. - 'mps' requests the australian_politicians-mps-by_division.csv dataset. - 'senators' requests the australian_politicians-senators-by_state.csv dataset.
An incorrect request (an argument not associated with a dataset or non-character string argument) will stop function processes and return an error message.
The requested dataset using df
to a user assigned name.
'show_datacodes()' function help.
1 2 3 4 5 6 7 8 | ## Not run:
# Request the Senators by State dataset.
senators_df <- get_auspol("senators")
# Preview first 10 observations of the dataset.
head(senators_df, 10)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.