meeting: Meetings of LegCo Committees

Description Usage Arguments Details Functions See Also Examples

View source: R/meeting.R

Description

Fetch basic information of LegCo committee meetings.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
meeting(
  slot_id = NULL,
  meet_id = NULL,
  from = "1900-01-01",
  to = Sys.Date(),
  type = "all",
  term_id = NULL,
  n = 10000,
  extra_param = NULL,
  count = FALSE,
  verbose = TRUE
)

legco_meeting(
  slot_id = NULL,
  meet_id = NULL,
  from = "1900-01-01",
  to = Sys.Date(),
  type = "all",
  term_id = NULL,
  n = 10000,
  extra_param = NULL,
  count = FALSE,
  verbose = TRUE
)

Arguments

slot_id

the id of a meeting slot, or a vector of ids. If NULL, returns all meetings. Defaults to NULL.

meet_id

the id of a meeting, or a vector of ids. If NULL, returns all meetings. Useful for matching meeting with records from the Attendance Database. Defaults to NULL.

from

only fetch results of meetings on or after this date. Accepts character values in "YYYY-MM-DD" format, and objects of class Date, POSIXt, POSIXct, POSIXlt or anything else that can be coerced to a date with as.Date(). Defaults to "1900-01-01".

to

only fetch results of meetings on or before this date. Accepts character values in "YYYY-MM-DD" format, and objects of class Date, POSIXt, POSIXct, POSIXlt or anything else that can be coerced to a date with as.Date(). Defaults to the current system date.

type

the type of meeting. If "open", returns open meetings. If "closed", returns closed meetings. If "all", returns all meetings. Defaults to "all".

term_id

the id of a term, or a vector of ids. If NULL, returns results of all terms. 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 Tmeeting 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 all meeting conducted on March 20, 2019
x <- meeting(from = "2019-03-20", to = "2019-03-20")

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