Description Usage Arguments Details See Also Examples
View source: R/voting_record.R
Fetch voting records of LegCo council, the Finance Committee and its subcommittees and the House Committee meetings.
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 26 27 28 29 30 31 32 33 | voting_record(
committee = NULL,
term_id = NULL,
result = "all",
vote = "all",
name_ch = NULL,
name_en = NULL,
separate_mechanism = NULL,
mover_type = "all",
from = "1900-01-01 00:00:00",
to = Sys.time(),
n = 10000,
extra_param = NULL,
count = FALSE,
verbose = TRUE
)
legco_voting_record(
committee = NULL,
term_id = NULL,
result = "all",
vote = "all",
name_ch = NULL,
name_en = NULL,
separate_mechanism = NULL,
mover_type = "all",
from = "1900-01-01 00:00:00",
to = Sys.time(),
n = 10000,
extra_param = NULL,
count = FALSE,
verbose = TRUE
)
|
committee |
the name of the committee or subcommittee. Defaults to
|
term_id |
the id of a term, or a vector of ids. If |
result |
the voting result. If |
vote |
the vote cast. If |
name_ch |
the name of a LegCo member in Traditional Chinese, or a vector
of names. If |
name_en |
the name of a LegCo member in English, or a vector of names.
If the member has an English name, the English name should go first
followed by the surname in capital letters, e.g. |
separate_mechanism |
only fetch votes that were counted with the vote
separate mechanism, i.e. requiring majority in both geographical and
functional constituencies to pass. If |
mover_type |
the type of motion being put on vote. If |
from |
only fetch results of meetings on or after this date and time.
Accepts character values in |
to |
only fetch results of meetings on or before this date and time.
Accepts character values in |
n |
the number of record to fetch. Defaults to |
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 |
verbose |
logical: Whether to display progress messages when fetching
data? Defaults to |
This function corresponds to the vVotingResult data endpoint of the Voting Result Database.
LegCo API documentation for the Voting Record database: https://www.legco.gov.hk/odata/english/vrdb.html
1 2 3 4 5 | # Fetch how members voted the motion on
# Abolishing the MPF Offsetting Mechanism on November 11, 2016
x <- voting_record(committee = "Council Meeting",
from = "2016-11-16 13:51:53",
to = "2016-11-16 13:51:53")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.