speakers: Speakers at LegCo

Description Usage Arguments Details Functions See Also Examples

View source: R/speakers.R

Description

Fetch the basic information of speakers in LegCo council meetings, including LegCo members, government officials and Secretariat staff.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
speakers(
  speaker_id = NULL,
  type = "all",
  extra_param = NULL,
  count = FALSE,
  verbose = TRUE
)

legco_speakers(
  speaker_id = NULL,
  type = "all",
  extra_param = NULL,
  count = FALSE,
  verbose = TRUE
)

Arguments

speaker_id

the id of a speaker at the Legislative Council, or a vector of ids. If NULL, returns all speakers. Defaults to NULL.

type

the position of a speaker. "all" returns all speakers. "PO" returns public officers. "LC" returns key appointment holders and staff at LegCo, such as President, Chairman and clerk. "MB" returns LegCo members. Default to "all".

extra_param

additional query parameters defined in LegCo API. Must begin with "&".

count

logical: Whether to return only the total count of records that matches the parameter(s) instead of the result. Defaults to FALSE.

verbose

logical: Whether to display progress messages when fetching data? Defaults to TRUE.

Details

This function corresponds to the Speakers data endpoint of the Hansard Database.

Functions

Functions of the Hansard database:

See Also

LegCo API documentation for the Hansard database: https://www.legco.gov.hk/odata/english/hansard-db.html

Examples

1
2
3
4
5
6
# Fetch a list of all speakers in LegCo council meetings
x <- speakers()
# Fetch a list of all speakers who are LegCo members
x <- speakers(type = "MB")
# Look up the details of a speaker with the id 6
x <- speakers(speaker_id = 6)

legco documentation built on Oct. 16, 2021, 5:09 p.m.