-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathanalyze_meetings.Rd
60 lines (57 loc) · 1.52 KB
/
analyze_meetings.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/stat_tool.R
\name{analyze_meetings}
\alias{analyze_meetings}
\title{Analyze Legislative Meeting Statistics}
\usage{
analyze_meetings(stats)
}
\arguments{
\item{stats}{A list containing Legislative Yuan statistics with the following structure:
\describe{
\item{meet}{A list containing:
\describe{
\item{total}{Total number of meetings}
\item{terms}{Data frame with columns:
\describe{
\item{term}{Legislative term number}
\item{count}{Number of meetings in that term}
\item{max_meeting_date}{Last meeting date of the term}
\item{meetdata_count}{Number of meetings with data}
\item{議事錄_count}{Number of meetings with minutes}
}
}
}
}
}}
}
\value{
A list containing:
\describe{
\item{plot}{A ggplot object showing meeting statistics comparison}
\item{summary}{A data frame with meeting statistics including:
\describe{
\item{term}{Term number}
\item{count}{Total meetings}
\item{minutes_ratio}{Percentage of meetings with minutes}
\item{last_meeting_date}{Formatted date of last meeting}
}
}
}
}
\description{
Analyzes and visualizes meeting statistics from the Legislative Yuan, including
meeting counts by term, minutes completion rates, and produces a comparison visualization
between total meetings and available meeting minutes.
}
\examples{
\dontrun{
# Get statistics and analyze meetings
stats <- get_ly_stat()
meeting_analysis <- analyze_meetings(stats)
# View the plot
print(meeting_analysis$plot)
# View meeting statistics
print(meeting_analysis$summary)
}
}