commons_terms: Imports the parliamentary thesaurus. The API is rate limited...

Description Usage Arguments Value Examples

View source: R/commons_terms.R

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
3
4
5
commons_terms(search = NULL, class = NULL, extra_args = NULL,
  tidy = TRUE, tidy_style = "snake_case")

hansard_commons_terms(search = NULL, class = NULL, extra_args = NULL,
  tidy = TRUE, tidy_style = "snake_case")

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 tibble to remove special characters and superfluous text, and converts the variable names to a consistent style. Defaults to TRUE.

tidy_style

The style to convert variable names to, if tidy = TRUE. Accepts one of 'snake_case', 'camelCase' and 'period.case'. Defaults to 'snake_case'.

Value

A tibble with results from the parliamentary thesaurus.

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)

hansard documentation built on July 11, 2017, 1:02 a.m.

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