calculate_bill_trends | R Documentation |
Calculates various trend metrics for legislative bills, including bills per meeting and bills per day, by joining bill and meeting statistics across terms.
calculate_bill_trends(stats)
stats |
A list containing Legislative Yuan statistics with the following structure:
|
A data frame containing the following columns:
Legislative term number
Total number of bills in term
Total number of meetings in term
Average number of bills per meeting
Average number of bills per day
## Not run:
# Get statistics and calculate trends
stats <- get_ly_stat()
trends <- calculate_bill_trends(stats)
# View trend analysis
print("Bill processing trends:")
print(trends)
# Analyze specific metrics
print("Average bills per meeting by term:")
print(trends[c("term", "bills_per_meeting")])
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.