Title: | Information About the Senate of Spain |
---|---|
Description: | Retrieve and parse information about the Spanish Congress. |
Authors: | Lluís Revilla Sancho [aut, cre] |
Maintainer: | Lluís Revilla Sancho <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.1.0.9000 |
Built: | 2024-12-11 04:11:17 UTC |
Source: | https://github.com/rOpenSpain/senadoRES |
Boletin
boletin(cve)
boletin(cve)
cve |
A character with the boletin CVE. |
A data.frame
boletin_csv <- boletin_csv(14, 3) b <- boletin(boletin_csv)
boletin_csv <- boletin_csv(14, 3) b <- boletin(boletin_csv)
Creates the code of the summary of a session of the senate with the documents that got talk.
boletin_csv(legislatura, sesion)
boletin_csv(legislatura, sesion)
legislatura |
A numeric value. Constituent was 0. |
sesion |
A numeric value above 0. |
Summary of the session plus information about the documents discussed.
Other generators of CVE:
document_csv()
,
sumario_csv()
boletin_csv(14, 1)
boletin_csv(14, 1)
Merges both information from the boletin()
and from the sumario()
boletin_sumario(legislatura, sesion)
boletin_sumario(legislatura, sesion)
legislatura |
A numeric value. Constituent was 0. |
sesion |
A numeric value above 0. |
A data.frame
bs <- boletin_sumario(14, 3)
bs <- boletin_sumario(14, 3)
Check code
check_code(id)
check_code(id)
id |
Code of an official publication of the Senate |
TRUE if passes all the checks
check_code("BOCG_S_1_1") check_code("BOCG_B_1_1") check_code("BOCG_D_1_1_1")
check_code("BOCG_S_1_1") check_code("BOCG_B_1_1") check_code("BOCG_D_1_1_1")
Look up the comisiones and ponencias of a legislature. Relevant to know the code of the work groups.
comisiones(legislatura)
comisiones(legislatura)
legislatura |
A numeric value above 12 (No information prior to then). |
A data.frame
with the comisiones and ponencias of that legislature.
if (interactive()) { comisiones(13) }
if (interactive()) { comisiones(13) }
Check individual session
detalles(url)
detalles(url)
url |
A url path to a session. |
A data.frame with all the information about a session.
if (interactive()) { pl <- plenarias(10) detalles(pl$fichUrlDetalleSesion[1]) }
if (interactive()) { pl <- plenarias(10) detalles(pl$fichUrlDetalleSesion[1]) }
Code needd to retrieve data about a document.
document_csv(legislatura, sesion, number)
document_csv(legislatura, sesion, number)
legislatura |
A numeric value. Constituent was 0. |
sesion |
A numeric value above 0. |
number |
A numeric value of |
A character vector of a valid CVE.
Other generators of CVE:
boletin_csv()
,
sumario_csv()
document_csv(14, 1, 1)
document_csv(14, 1, 1)
A document
documento(cve)
documento(cve)
cve |
A character with a document CVE. |
Other types of documents:
sumario()
document_csv <- "BOCG_D_14_110_901" if (interactive()) { documento(document_csv) }
document_csv <- "BOCG_D_14_110_901" if (interactive()) { documento(document_csv) }
Retrieves the data for each term of the groups and political parties present
grupos(legislatura)
grupos(legislatura)
legislatura |
A numeric value above 12 (No information prior to then). |
A matrix with all the information available.
if (interactive()){ grupos(13) }
if (interactive()){ grupos(13) }
Retrieve information about an individual iniciativa parlamentaria.
iniciativa_parlamentaria(legislatura, numex)
iniciativa_parlamentaria(legislatura, numex)
legislatura |
A numeric value. Constituent was 0. |
numex |
String code of the document of the form XXX/YYYYYY. |
A data.frame with the situation, the title the type of document, dates and many more.
document_csv <- "BOCG_D_14_110_901" if (interactive()){ d <- documento(document_csv) hd <- iniciativa_parlamentaria(14, d$NUMEXP) }
document_csv <- "BOCG_D_14_110_901" if (interactive()){ d <- documento(document_csv) hd <- iniciativa_parlamentaria(14, d$NUMEXP) }
Look up the legislative iniciatives
iniciativas(legislatura)
iniciativas(legislatura)
legislatura |
A numeric value. Constituent was 0. |
A data.frame with the initiatives of that legislature.
iniciativas_parlamentarias
if (interactive()) { iniciativas(14) }
if (interactive()) { iniciativas(14) }
Check how many laws were approved. Note it might now return all the laws approved.
leyes(legislatura)
leyes(legislatura)
legislatura |
A numeric value. Constituent was 0. |
A data.frame with the approved laws and related information.
if (interactive()) { l <- leyes(14) head(l) }
if (interactive()) { l <- leyes(14) head(l) }
Download mociones
mociones(legislatura)
mociones(legislatura)
legislatura |
A numeric value. Constituent was 0. |
A data.frame with information about the mociones.
iniciativas_parlamentarias()
if (interactive()) { mociones(13) }
if (interactive()) { mociones(13) }
Retrieves the relationships between people responsible of the Senate. At the moment due to limitation on the website only works on the 13 legislature.
organigrama(legislatura = 13)
organigrama(legislatura = 13)
legislatura |
A numeric value above 12 (No information prior to then). |
A data.frame
with all the information available.
head(organigrama())
head(organigrama())
How many session have been.
plenarias(legislatura = 10)
plenarias(legislatura = 10)
legislatura |
A numeric value above 12 (No information prior to then). |
A data.frame with the information available.
if (interactive()) { head(plenarias(10)) }
if (interactive()) { head(plenarias(10)) }
Retrieves the open data of a senator.
senador(legislatura, codigo)
senador(legislatura, codigo)
legislatura |
A numeric value. Constituent was 0. |
codigo |
Number or idweb of the senator. |
if (interactive()) { s <- senador(14, 19050) head(s) }
if (interactive()) { s <- senador(14, 19050) head(s) }
Past and current appointed members.
senadores(legislatura = 12:14)
senadores(legislatura = 12:14)
legislatura |
A numeric value above 12 (No information prior to then). |
A data.frame
with the information available.
if (interactive()) { head(senadores(12)) }
if (interactive()) { head(senadores(12)) }
Returns the summary of a session in a tidy way. If multiple authors are involved in a disposition and multiple documents they get mixed.
sumario(cve)
sumario(cve)
cve |
The character of the CVE of the document. |
A data.frame with a summary of the session, date, documents, authors.
Other types of documents:
documento()
sumario_csv <- sumario_csv(14, 3) if (interactive()) { head(sumario(sumario_csv)) }
sumario_csv <- sumario_csv(14, 3) if (interactive()) { head(sumario(sumario_csv)) }
Creates the code of the summary of a session of the senate.
sumario_csv(legislatura, sesion)
sumario_csv(legislatura, sesion)
legislatura |
A numeric value. Constituent was 0. |
sesion |
A numeric value above 0. |
A character id of the code for the summary of that session.
Other generators of CVE:
boletin_csv()
,
document_csv()
sumario_csv(14, 1)
sumario_csv(14, 1)
Retrieve votes in a sesion.
votos(legislatura, sesion, votacion = NULL)
votos(legislatura, sesion, votacion = NULL)
legislatura |
A numeric value. Constituent was 0. |
sesion |
The number of the meeting. |
votacion |
Number of the vote. |
A votos class with information about who voted what.
votos_64 <- votos(14, 64) votos_3_8 <- votos(14, 3, 8)
votos_64 <- votos(14, 64) votos_3_8 <- votos(14, 3, 8)