Fetch Bills Cosigned by a Legislator 取得立法委員連署法案
Source:R/get_ly_legislator_cosign_bills.R
get_ly_legislator_cosign_bills.Rd
Retrieves bills that were cosigned by a specific legislator by term and name from the Legislative Yuan API.
Value
A list containing two components:
- metadata
A list containing pagination information:
- total
Total number of cosigned bills
- total_page
Total number of pages
- current_page
Current page number
- per_page
Number of records per page
- bills
A data frame containing bill information:
- billNo
Bill number
- 議案名稱
Bill name
- 提案單位
Proposing unit/legislator
- 議案狀態
Bill status
- 議案類別
Bill type
- 提案來源
Source
- meet_id
Meeting ID
- 會期
Session period
- 字號
Case number
- 提案編號
Proposal number
- 屆期
Term
- mtime
Last modified time
See also
- get_ly_legislator_bills
get_ly_legislator_bills
for retrieving bills proposed by a legislator- get_ly_legislator_detail
get_ly_legislator_detail
for legislator's detailed information
Examples
if (FALSE) { # \dontrun{
# Get cosigned bills
bills <- get_ly_legislator_cosign_bills(
term = 9,
name = "王金平",
limit = 5
)
# Print results
print(paste("Total cosigned bills:", bills$metadata$total))
print("Latest cosigned bill:")
print(bills$bills[1, c("議案名稱", "議案狀態")])
# Get second page of results
bills_page2 <- get_ly_legislator_cosign_bills(
term = 9,
name = "王金平",
page = 2,
limit = 20
)
} # }