getDebates: getDebates

Description Usage Arguments Value Examples

View source: R/getDebates.R

Description

Fetch Debates (including Oral Questions).

Usage

1
2
getDebates(type = NA, date = NA, search = NA, person = NA, gid = NA,
  order = NA, page = NA, num = 1000, complete_call = F)

Arguments

type

One of "commons", "westminsterhall", "lords", "scotland", or "northernireland". (required)

date

Fetch the debates for this date.

search

Fetch the debates that contain this term.

person

Fetch the debates by a particular person ID.

gid

Fetch the speech or debate that matches this GID.

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 debates

Examples

1

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