The Records of Response to the Questions by the Executives 公報質詢事項行政院答復資訊
Source:R/parlquestions.R
get_executive_response.Rd
Provides access to the records of parliamentary questions through the Legislative Yuan's V1 API interface.
Arguments
- term
integer, numeric or NULL. The default is NULL. The data is only available from 8th term. 參數必須為數值。資料從自第8屆起,預設值為8。
- 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 NULL. 參數必須為數值。
review_session_info()
generates each session period available option period in Minguo (Taiwan) calendar.- verbose
logical, indicates whether
get_executive_response
should print out detailed output when retrieving the data. The default is set to TRUE
Value
list contains:
title
the records of the questions answered by the executives
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
data
a tibble dataframe, whose variables include:
sessionPeriod
會期
sessionTimes
會次
meetingTimes
臨時會會次
eyNumber
行政院函公文編號
lyNumber
立法院函編號
subject
案由
content
內容
docUrl
案由
item
檔案下載位置
item
檔案下載位置
selectTerm
屆別期別篩選條件
Details
get_executive_response
produces a list, which contains title
,
query_time
, retrieved_number
, retrieved_term
, url
, variable_names
,
manual_info
and data
. To retrieve the user manual and more information, please
use get_variable_info("get_executive_response")
.
#'@note To retrieve the user manual and more information about variable of the data
frame, please use get_variable_info("get_executive_response")
or visit the API manual at https://data.ly.gov.tw/getds.action?id=2.
質詢類: 提供公報質詢事項行政院答復資訊 (自第8屆第1會期起)。
See also
get_variable_info("get_executive_response")
, review_session_info()
Examples
## query the Executives' answered response by term and the session period.
## 輸入「立委屆期」與「會期」下載「行政院答復」
term8 <- get_executive_response(term = 8, session_period = 1)
#>
#> Input Format Information:
#> ------------------------
#> Term: Must be numeric (e.g., 8, 9, 10, 11)
#> Session Period: Must be numeric (1-8)
#> ------------------------
#>
#> Downloading executive response data...
#>
|
| | 0%
|
|============= | 20%
|
|========================== | 40%
|
|====================================== | 60%
|
|=================================================== | 80%
|
|================================================================| 100%
#>
#>
#> ====== Retrieved Information ======
#> -----------------------------------
#> URL:
#> https://data.ly.gov.tw/odw/ID2Action.action?term=08&sessionPeriod=01&sessionTimes=&item=&fileType=json
#> Term: 08
#> Session Period: 1
#> Total Responses: 1065
#>
#> Session Distribution:
#> Session 01: 1065
#> ===================================
term8
#> $title
#> [1] "Executive Response Records"
#>
#> $query_time
#> [1] "2025-01-20 20:12:49 UTC"
#>
#> $retrieved_number
#> [1] 1065
#>
#> $retrieved_term
#> [1] "08"
#>
#> $url
#> [1] "https://data.ly.gov.tw/odw/ID2Action.action?term=08&sessionPeriod=01&sessionTimes=&item=&fileType=json"
#>
#> $variable_names
#> [1] "term" "sessionPeriod" "sessionTimes" "meetingTimes"
#> [5] "eyNumber" "lyNumber" "subject" "content"
#> [9] "docUrl" "selectTerm"
#>
#> $manual_info
#> [1] "https://data.ly.gov.tw/getds.action?id=2"
#>
#> $data
#> # A tibble: 1,065 × 10
#> term sessionPeriod sessionTimes meetingTimes eyNumber lyNumber subject
#> <chr> <chr> <chr> <chr> <chr> <chr> <chr>
#> 1 08 01 01 null (行政院函 中… (立法院函 編… (一八一)行…
#> 2 08 01 01 null (行政院函 中… (立法院函 編… (一八二)行…
#> 3 08 01 01 null (行政院函 中… (立法院函 編… (一八三)行…
#> 4 08 01 01 null (行政院函 中… (立法院函 編… (一八四)行…
#> 5 08 01 01 null (行政院函 中… (立法院函 編… (一八五)行…
#> 6 08 01 01 null (行政院函 中… (立法院函 編… (一八六)行…
#> 7 08 01 01 null (行政院函 中… (立法院函 編… (一八七)行…
#> 8 08 01 01 null (行政院函 中… (立法院函 編… (一八八)行…
#> 9 08 01 01 null (行政院函 中… (立法院函 編… (一八九)行…
#> 10 08 01 01 null (行政院函 中… (立法院函 編… (一九○)行…
#> # ℹ 1,055 more rows
#> # ℹ 3 more variables: content <chr>, docUrl <chr>, selectTerm <chr>
#>