-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathget_ly_legislator_cosign_bills.Rd
91 lines (84 loc) · 2.26 KB
/
get_ly_legislator_cosign_bills.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_ly_legislator_cosign_bills.R
\encoding{UTF-8}
\name{get_ly_legislator_cosign_bills}
\alias{get_ly_legislator_cosign_bills}
\title{Fetch Bills Cosigned by a Legislator}
\usage{
get_ly_legislator_cosign_bills(
term,
name,
page = 1,
limit = 20,
show_progress = TRUE
)
}
\arguments{
\item{term}{required integer. Legislative term number (e.g. 9)}
\item{name}{required string. Legislator name (e.g. "王金平")}
\item{page}{integer. Page number for pagination (default: 1)}
\item{limit}{integer. Number of records per page (default: 20)}
\item{show_progress}{logical. Whether to display progress info (default: TRUE)}
}
\value{
A list containing two components:
\describe{
\item{metadata}{A list containing pagination information:
\describe{
\item{total}{Total number of cosigned bills}
\item{total_page}{Total number of pages}
\item{current_page}{Current page number}
\item{per_page}{Number of records per page}
}
}
\item{bills}{A data frame containing bill information:
\describe{
\item{billNo}{Bill number}
\item{議案名稱}{Bill name}
\item{提案單位}{Proposing unit/legislator}
\item{議案狀態}{Bill status}
\item{議案類別}{Bill type}
\item{提案來源}{Source}
\item{meet_id}{Meeting ID}
\item{會期}{Session period}
\item{字號}{Case number}
\item{提案編號}{Proposal number}
\item{屆期}{Term}
\item{mtime}{Last modified time}
}
}
}
}
\description{
Retrieves bills that were cosigned by a specific legislator by term and name from the Legislative Yuan API.
}
\details{
Get Legislator's Cosigned Bills
}
\examples{
\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
)
}
}
\seealso{
\describe{
\item{get_ly_legislator_bills}{\code{\link{get_ly_legislator_bills}} for retrieving bills proposed by a legislator}
\item{get_ly_legislator_detail}{\code{\link{get_ly_legislator_detail}} for legislator's detailed information}
}
}