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_time
the queried time
queried_term
the queried term
url
the retrieved json url
variable_names
the variables of the tibble dataframe
manual_info
the official manual from https://data.ly.gov.tw/getds.action?id=16, or use legisTaiwan::get_variable_info("get_legislators")
data
a 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)
# Get data for the 9th term
legislators_data <- get_legislators(term = 9)
legislators_data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.