Imports the parliamentary thesaurus. The API is rate limited to 5500 requests at a time, so some use of parameters is required.
commons_terms(
search = NULL,
class = NULL,
extra_args = NULL,
tidy = TRUE,
tidy_style = "snake",
verbose = TRUE
)
hansard_commons_terms(
search = NULL,
class = NULL,
extra_args = NULL,
tidy = TRUE,
tidy_style = "snake",
verbose = TRUE
)A string to search the parliamentary thesaurus for.
The class of definition to be returned Accepts one of
'ID', 'ORG', 'SIT', 'NAME', 'LEG',
'CTP', 'PBT' and 'TPG'. Defaults to NULL.
Additional parameters and queries to pass to API. These
queries must be strings and start with "&". See the
API documentation
or the package vignette for more details. Defaults to NULL.
Logical parameter. If TRUE, fixes the variable names
in the tibble to remove special characters and superfluous text, and
converts the variable names to a consistent style. Defaults to TRUE.
The style to convert variable names to, if
tidy = TRUE. Accepts any style accepted by to_any_case.
Defaults to 'snake'.
If TRUE, displayes messages on the console on the
progress of the API request. Defaults to TRUE.
A tibble with results from the parliamentary thesaurus.
if (FALSE) {
x <- commons_terms(search = "estate")
x <- commons_terms(search = "estate", class = "ORG")
}