search_member: Search LegCo Member

Description Usage Arguments Details Functions Notes

View source: R/search_member.R

Description

Search LegCo member by SpeakerID, MemberID or/and full or partial English or Chinese name.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
search_member(
  search_string = NULL,
  speaker_id = NULL,
  member_id = NULL,
  exact = TRUE,
  verbose = TRUE
)

legco_search_member(
  search_string = NULL,
  speaker_id = NULL,
  member_id = NULL,
  exact = TRUE,
  verbose = TRUE
)

Arguments

search_string

search string of member's name. Accepts Chinese or English full or partial name. Defaults to NULL.

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.

exact

logical: Whether to look for exact match of the search term. Defaults to TRUE.

verbose

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

Details

This is a complementary function to speakers() and member().

Functions

Complementary Functions:

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.


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