Fetch the basic information of LegCo sessions.

session(
  session_id = NULL,
  term_id = NULL,
  date = NULL,
  extra_param = NULL,
  count = FALSE,
  verbose = TRUE
)

legco_session(
  session_id = NULL,
  term_id = NULL,
  date = NULL,
  extra_param = NULL,
  count = FALSE,
  verbose = TRUE
)

Arguments

session_id

the id of a session, or a vector of ids. If NULL, returns result of all sessions. 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.

date

only fetch the result in which the specified date falls within. 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 NULL.

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 Tsession 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 LegCo sessions of the fifth term
x <- session(term_id = 4)
#> Retrieving records...
#> Retrieved 4 record(s). 4 record(s) available in total.
# }