Fetch basic information of LegCo committee meetings.

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/en/open-legco/open-data/meeting-schedule.html

Examples

# \donttest{
# Fetch all meeting conducted on March 20, 2019
x <- meeting(from = "2019-03-20", to = "2019-03-20")
#> Retrieving records...
#> Retrieved 3 record(s). 3 record(s) available in total.
# }