| get_legislators | R Documentation |
Provides access to legislators' basic demographic and background information through the Legislative Yuan's V1 API interface.
get_legislators(term = NULL, verbose = TRUE)
term |
numeric or NULL The data is available from the 2nd term. |
verbose |
logical, indicates whether get_meetings should print out detailed output when retrieving the data. The default is set to TRUE. |
This function retrieves comprehensive data about legislators including their personal information, political background, and demographic details. The data is available starting from the 2nd legislative term.
get_legislators produces a list, which contains query_time,
queried_term, url, variable_names, manual_info and data.
list contains:
query_timethe queried time
queried_termthe queried term
urlthe retrieved json url
variable_namesthe variables of the tibble dataframe
manual_infothe official manual from https://data.ly.gov.tw/getds.action?id=16, or use legisTaiwan::get_variable_info("get_legislators")
dataa tibble dataframe, whose variables include:
term屆別
name委員姓名
ename委員姓名
sex性別
party黨籍
partyGroup黨團
committee委員會
onboardDate到職日(西元年)
degree學歷
experience經歷
picPath照片位址
leaveFlag離職日期(西元年)
leaveReason離職原因
To retrieve the user manual and more information about variable of the data
frame, please use get_variable_info("get_legislators")
or visit the API manual at https://data.ly.gov.tw/getds.action?id=16.
提供委員基本資料,最早資料可追溯至第2屆。
Yen-Chieh Liao (davidycliao@gmail.com)
get_variable_info("get_legislators"), review_session_info()
## query the Executives' answered response by term and the session period.
## 輸入「立委屆期」與「會期」下載「行政院答復」
get_executive_response(term = 8, session_period = 1)
## Not run:
# Get data for the 9th term
legislators_data <- get_legislators(term = 9)
legislators_data
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.