membership: Membership of LegCo Committees

Description Usage Arguments Details Functions See Also Examples

View source: R/membership.R

Description

Fetch the members of LegCo committees.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
membership(
  member_id = NULL,
  committee_id = NULL,
  term_id = NULL,
  post = NULL,
  n = 10000,
  extra_param = NULL,
  count = FALSE,
  verbose = TRUE
)

legco_membership(
  member_id = NULL,
  committee_id = NULL,
  term_id = NULL,
  post = NULL,
  n = 10000,
  extra_param = NULL,
  count = FALSE,
  verbose = TRUE
)

Arguments

member_id

the id of a LegCo member, or a vector of ids. If NULL, returns results of all LegCo members. Defaults to NULL.

committee_id

the id of a committee, or a vector of ids. If NULL, returns results of all committees. Defaults to NULL.

term_id

the id of a term, or a vector of ids. If NULL, returns results of all terms. Defaults to NULL.

post

the post of a member in the committee, or a vector of posts. "President", "Chairman", "Deputy Chairman", "Member" and "Convenor" return members of the respective post. If NULL, returns members of all posts. Defaults to NULL.

n

the number of record to fetch. Defaults to 1000.

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 Tmembership data endpoint of the Meeting Schedule Database.

Functions

Functions of the Meeting Schedule Database:

See Also

LegCo API documentation for the Meeting Schedule database: https://www.legco.gov.hk/odata/english/attendance-db.html

Examples

1
2
# Fetch members of the Subcommittee on Issues Relating to Bazaars
x <- membership(committee_id = 2704)

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