generate_report | R Documentation |
Generates a comprehensive summary report of Legislative Yuan statistics, including legislator counts, gazette information, and video records data. Presents the information in a formatted text output.
generate_report(stats)
stats |
A list containing Legislative Yuan statistics with the following structure:
|
A formatted report containing the following sections:
Total number of bills
Most recent bill update date
Historical total of legislators
Legislator counts by term
Numbers of gazettes and agendas
Most recent meeting date
Number of video records
Time span of video archives
For detailed bill analysis
For meeting statistics analysis
For video records analysis
## Not run:
# Generate full statistics report
stats <- get_ly_stat()
generate_report(stats)
# View specific sections
stats <- get_ly_stat()
cat("\nBill Statistics:\n")
cat(sprintf("Total Bills: %d\n", stats$bill$total))
cat("\nLegislator Statistics:\n")
cat(sprintf("Total Legislators: %d\n", stats$legislator$total))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.