View source: R/get_ly_legislator_detail.R
get_ly_legislator_detail | R Documentation |
Retrieves detailed information for a specific legislator by term and name from the Legislative Yuan API.
get_ly_legislator_detail(term, name, show_progress = TRUE)
term |
required integer. Legislative term number (e.g. 9) |
name |
required string. Legislator name (e.g. "王金平") |
show_progress |
logical. Whether to display progress info (default: TRUE) |
Get Legislative Yuan Legislator Detail 取得立法委員完整歷史資料
A list containing legislator details:
Legislative term number
Legislator's name in Chinese
Legislator's name in English
Gender
Political party affiliation
Legislative party group
Represented area
Committee assignments by session
Date took office
Education background
Work experience
URL of legislator's photo
Whether has left office
Date left office if applicable
Reason for leaving if applicable
Biography ID
## Not run:
# Get legislator detail
detail <- get_ly_legislator_detail(
term = 9,
name = "王金平"
)
# Print basic info
cat(sprintf(
"Name: %s (%s)\nParty: %s\nArea: %s\n",
detail$name,
detail$ename,
detail$party,
detail$areaName
))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.