View source: R/get_ly_legislator_cosign_bills.R
get_ly_legislator_cosign_bills | R Documentation |
Retrieves bills that were cosigned by a specific legislator by term and name from the Legislative Yuan API.
get_ly_legislator_cosign_bills(
term,
name,
page = 1,
limit = 20,
show_progress = TRUE
)
term |
required integer. Legislative term number (e.g. 9) |
name |
required string. Legislator name (e.g. "王金平") |
page |
integer. Page number for pagination (default: 1) |
limit |
integer. Number of records per page (default: 20) |
show_progress |
logical. Whether to display progress info (default: TRUE) |
Get Legislator's Cosigned Bills 取得立法委員連署法案
A list containing two components:
A list containing pagination information:
Total number of cosigned bills
Total number of pages
Current page number
Number of records per page
A data frame containing bill information:
Bill number
Bill name
Proposing unit/legislator
Bill status
Bill type
Source
Meeting ID
Session period
Case number
Proposal number
Term
Last modified time
get_ly_legislator_bills
for retrieving bills proposed by a legislator
get_ly_legislator_detail
for legislator's detailed information
## Not run:
# 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
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.