| get_bills | R Documentation |
The Records of the Bills: 法律提案
get_bills(start_date = NULL, end_date = NULL, proposer = NULL, verbose = TRUE)
start_date |
numeric. Must be formatted in the ROC Taiwan calendar, e.g., 1090101. |
end_date |
numeric. Must be formatted in the ROC Taiwan calendar, e.g., 1090102. |
proposer |
The default value is NULL, indicating that bills proposed by all legislators are included between the start and end dates. |
verbose |
logical. Specifies whether |
The get_bills function returns a list that contains query_time,
retrieved_number, meeting_unit, start_date_ad, end_date_ad, start_date,
end_date, url, variable_names, manual_info, and data.
A list, which contains:
titleRecords of cross-caucus sessions
query_timeQuery timestamp
retrieved_numberNumber of observations retrieved
meeting_unitMeeting unit
start_date_adStart date in POSIXct format
end_date_adEnd date in POSIXct format
start_dateStart date in the ROC Taiwan calendar
urlURL of the retrieved JSON data
variable_namesVariable names of the tibble dataframe
manual_infoOfficial manual. See https://www.ly.gov.tw/Pages/List.aspx?nodeid=153 or use get_variable_info("get_bills")
dataA tibble dataframe with the following variables:
termSession number
sessionPeriodSession period
sessionTimesSession count
meetingTimesProposal date
billNameBill name
billProposerPrimary proposer
billCosignatoryCo-signatories of the bill
billStatusStatus of the bill
date_adDate in the Gregorian calendar
To retrieve the user manual and more details about the data frame, use get_variable_info("get_bills").
Further checks are required as the user manual seems to be inconsistent with the actual data.
David Liao (davidycliao@gmail.com)
https://www.ly.gov.tw/Pages/List.aspx?nodeid=153
## Not run:
## Query bill records by a date range in the Taiwan ROC calendar format
get_bills(start_date = 1060120, end_date = 1070310, verbose = TRUE)
## Query bill records by a date range and a specific legislator
get_bills(start_date = 1060120, end_date = 1070310, proposer = "孔文吉")
## Query bill records by a date range and multiple legislators
get_bills(start_date = 1060120, end_date = 1060510, proposer = "孔文吉&鄭天財")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.