getHansard: getHansard

Description Usage Arguments Value Examples

View source: R/getHansard.R

Description

Fetch all Hansard. Note you can only supply one of 'search' or 'person' parameters at present.

Usage

1
2
getHansard(search = NA, person = NA, order = NA, page = NA,
  num = 1000, complete_call = F)

Arguments

search

Fetch the data that contain this term.

person

Fetch the debates by a particular person ID.

order

(optional, when using search or person) "d" for date ordering, "r" for relevance ordering.

page

(optional, when using search or person) Page of results to return.

num

(optional, when using search or person) Number of results to return (maximum and default is 1000).

complete_call

The twfy API will only seemingly return 1000 results per call. Setting this parameter to TRUE will iterate over the page parameter until all results are collected. Warning: this is a quick way to use up your API call allowance.

Value

data.frame of Hansard entries

Examples

1

jblumenau/twfyR documentation built on Oct. 25, 2019, 7:13 a.m.