commons_terms: commons_terms

Description Usage Arguments Examples

Description

Imports the parliamentary thesaurus. The API is rate limited to 5500 requests at a time, so some use of parameters is required.

Usage

1
2
commons_terms(search = NULL, class = NULL, extra_args = NULL,
  tidy = TRUE)

Arguments

search

A string to search the parliamentary thesaurus for.

class

The class of definition to be returned Accepts one of 'ID', 'ORG', 'SIT', 'NAME', 'LEG','CTP', 'PBT' and 'TPG'. Defaults to NULL

extra_args

Additional parameters to pass to API. Defaults to NULL.

tidy

Fix the variable names in the data frame to remove extra characters, superfluous text and convert variable names to snake_case. Defaults to TRUE.

Examples

1
2
3
4
5
6
7
8
## Not run: 

x <- commons_terms(search='estate')

x <- commons_terms(search='estate', class='ORG')


## End(Not run)


Search within the hansard package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.