Description Usage Arguments Value Examples
It's often useful to know who the Prime Minister was at any point in time when analysing political data. This function takes a dataset that includes a dated variable and adds to it a new column that shows who the Prime Minister was at each moment in time.
1 |
data |
A dataset that includes a date variable. |
date |
The name of your date variable in your data. |
name |
What to call the new column of Prime Ministers. Defaults to "prime_minister". |
A tibble of data.
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.