Provides access to the records of parliamentary questions through the Legislative Yuan's V1 API interface.
Arguments
- term
numeric or NULL. The default is set to NULL. 參數必須為數值。
- session_period
integer, numeric or NULL. Available options for the session is: 1, 2, 3, 4, 5, 6, 7, and 8. The default is set to 8 參數必須為數值。
review_session_info()
generates each session period available option period in Minguo (Taiwan) calendar.- verbose
logical, indicates whether
get_parlquestions
should print out detailed output when retrieving the data. The default is TRUE.
Value
A list containing:
title
the records of parliamentary questions
query_time
the queried time
retrieved_number
the total number of observations
retrieved_term
the queried term
url
the retrieved json url
variable_names
the variables of the tibble dataframe
manual_info
the offical manual from https://data.ly.gov.tw/getds.action?id=6, or use get_variable_info("get_parlquestions")
data
a tibble dataframe, whose variables include:
term
屆別
sessionPeriod
會期
sessionTimes
會次
item
項目
selectTerm
屆別期別篩選條件
Details
get_parlquestions
produces a list, which contains title
,
query_time
, retrieved_number
, retrieved_term
, url
, variable_names
,
manual_info
, and data
.
Note
To retrieve the user manual and more information about variable of the data
frame, please use get_variable_info("get_parlquestions")
or visit the API manual at https://data.ly.gov.tw/getds.action?id=6.
質詢類: 提供議事日程本院委員之質詢事項資訊(自第8屆第1會期起)。
Examples
term10 <- get_parlquestions(term = 10, session_period = 1)
#>
#> Input Format Information:
#> ------------------------
#> Term: Must be numeric (e.g., 8, 9, 10)
#> Session Period: Must be numeric (1-8)
#> ------------------------
#>
#> Downloading parliamentary questions data...
#>
|
| | 0%
|
|============= | 20%
|
|========================== | 40%
|
|====================================== | 60%
|
|=================================================== | 80%
|
|================================================================| 100%
#>
#>
#> ====== Retrieved Information ======
#> -----------------------------------
#> URL:
#> https://data.ly.gov.tw/odw/ID6Action.action?term=10&sessionPeriod=01&sessionTimes=&item=&fileType=json
#> Term: 10
#> Session Period: 1
#> Total Questions: 784
#>
#> Session Distribution:
#> Session 01: 784
#> ===================================
term10
#> $title
#> [1] "Parliamentary Questions Records"
#>
#> $query_time
#> [1] "2025-01-20 20:13:14 UTC"
#>
#> $retrieved_number
#> [1] 784
#>
#> $retrieved_term
#> [1] "10"
#>
#> $url
#> [1] "https://data.ly.gov.tw/odw/ID6Action.action?term=10&sessionPeriod=01&sessionTimes=&item=&fileType=json"
#>
#> $variable_names
#> [1] "term" "sessionPeriod" "sessionTimes" "item"
#> [5] "selectTerm"
#>
#> $manual_info
#> [1] "https://data.ly.gov.tw/getds.action?id=6"
#>
#> $data
#> # A tibble: 784 × 5
#> term sessionPeriod sessionTimes item selectTerm
#> <chr> <chr> <chr> <chr> <chr>
#> 1 10 01 01 乙、本院委員質詢部分 all
#> 2 10 01 01 一、本院李委員德維,針就大陸武漢肺炎疫情持續擴散,雖… all
#> 3 10 01 01 二、本院李委員德維,針就台灣邁向高齡化、少子化社會,… all
#> 4 10 01 01 三、本院許委員淑華,鑑於新型冠狀肺炎疫情在中國大陸爆… all
#> 5 10 01 01 四、本院許委員淑華,鑑於政府和民眾都為武漢肺炎肆虐而… all
#> 6 10 01 01 五、本院許委員淑華,鑑於2020年被喻為亞洲之虎的越… all
#> 7 10 01 01 六、本院許委員淑華,鑑於台灣地區呈現低所得和高房價的… all
#> 8 10 01 01 七、本院許委員淑華,鑑於蔡英文總統連任成功後,還有很… all
#> 9 10 01 01 八、本院許委員淑華,鑑於新型冠狀病毒疫情未來發展似不… all
#> 10 10 01 01 九、本院許委員淑華,鑑於武漢肺炎疫情侵襲,不能沒有危… all
#> # ℹ 774 more rows
#>