Search voting record by conducted committee or date or meeting slot or LegCo member(s). Note that only voting records from the Council, House Committee, Finance Committee and its subcommittees are available.

search_voting_record(
  speaker_id = NULL,
  member_id = NULL,
  committee_id = NULL,
  slot_id = NULL,
  from = "1900-01-01 00:00:00",
  to = Sys.time(),
  verbose = TRUE,
  ...
)

legco_search_voting_record(
  speaker_id = NULL,
  member_id = NULL,
  committee_id = NULL,
  slot_id = NULL,
  from = "1900-01-01 00:00:00",
  to = Sys.time(),
  verbose = TRUE,
  ...
)

Arguments

speaker_id

the id of a speaker at the Legislative Council, or a vector of ids. If NULL, returns all speakers. Defaults to NULL.

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.

slot_id

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

from

only fetch results of meetings on or after this date and time. Accepts character values in "YYYY-MM-DD" or "YYYY-MM-DD HH:MM:SS" 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 00:00:00".

to

only fetch results of meetings on or before this date and time. Accepts character values in "YYYY-MM-DD" or "YYYY-MM-DD HH:MM:SS" 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 time.

verbose

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

...

optional arguments passed to voting_record().

Details

This is a complementary function to voting_record().

Functions

Complementary Functions:

  • search_committee: Search LegCo committees

  • search_member: Search LegCo members

  • search_voting_record: Search Voting Record in LegCo meetings

  • search_question: Search full text of question put to the government by LegCo members

Notes

The complementary functions work by calling a number of database functions and combining their output, meaning that a function call usually involves multiple API calls. Use with caution to prevent reaching the API’s rate limit too quickly.

Examples

# \donttest{
# Search the voting records of SpeakerID 102 in CommitteeID 2567 since June 15, 2019.
x <- search_voting_record(speaker_id = 102, committee_id = 2567, from = "2019-06-15")
#> Retrieving records...
#> Retrieved 1 record(s). 1 record(s) available in total.
#> Retrieving records...
#> Retrieved 1 record(s). 1 record(s) available in total.
#> Retrieving records...
#> Retrieved 237 record(s). 237 record(s) available in total.
#> 237 record(s) match(es) your parameters.
# }