Description Usage Arguments Details Value
fetch_mps_government_roles
fetches data from the data platform
showing government roles for each MP.
1 2 3 4 5 6 | fetch_mps_government_roles(
from_date = NA,
to_date = NA,
on_date = NA,
while_mp = TRUE
)
|
from_date |
A string or Date representing a date. If a string is used it should specify the date in ISO 8601 date format e.g. '2000-12-31'. The default value is NA, which means no records are excluded on the basis of the from_date. |
to_date |
A string or Date representing a date. If a string is used it should specify the date in ISO 8601 date format e.g. 2000-12-31'. The default value is NA, which means no records are excluded on the basis of the to_date. |
on_date |
A string or Date representing a date. If a string is used it should specify the date in ISO 8601 date format e.g. 2000-12-31'. The default value is NA, which means no records are excluded on the basis of the on_date. |
while_mp |
A boolean indicating whether to filter the government roles to include only those roles that were held while each individual was serving as an MP. The default value is TRUE. |
The from_date and to_date arguments can be used to filter the roles returned. The on_date argument is a convenience that sets the from_date and to_date to the same given date. The on_date has priority: if the on_date is set, the from_date and to_date are ignored.
The while_mp argument can be used to filter the roles to include only those that occurred during the period when each individual was an MP.
The filtering is inclusive: a role is returned if any part of it falls within the period specified with the from and to dates.
Note that a role with an NA end date is still open.
A tibble of government roles for each MP, with one row per role.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.