term: Term of LegCo

Description Usage Arguments Details Functions See Also Examples

View source: R/term.R

Description

Fetch the basic information of LegCo terms.

Usage

1
2
3
term(term_id = NULL, date = NULL, extra_param = NULL, verbose = TRUE)

legco_term(term_id = NULL, date = NULL, extra_param = NULL, verbose = TRUE)

Arguments

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 "&".

verbose

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

Details

This function corresponds to the Tterm 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 LegCo terms
x <- term()

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