Package 'senadoRES'

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

Help Index


Boletin

Description

Boletin

Usage

boletin(cve)

Arguments

cve

A character with the boletin CVE.

Value

A data.frame

See Also

boletin_csv()

Examples

boletin_csv <- boletin_csv(14, 3)
b <-  boletin(boletin_csv)

Boletin's code

Description

Creates the code of the summary of a session of the senate with the documents that got talk.

Usage

boletin_csv(legislatura, sesion)

Arguments

legislatura

A numeric value. Constituent was 0.

sesion

A numeric value above 0.

Value

Summary of the session plus information about the documents discussed.

See Also

Other generators of CVE: document_csv(), sumario_csv()

Examples

boletin_csv(14, 1)

Info of a session

Description

Merges both information from the boletin() and from the sumario()

Usage

boletin_sumario(legislatura, sesion)

Arguments

legislatura

A numeric value. Constituent was 0.

sesion

A numeric value above 0.

Value

A data.frame

See Also

boletin() and sumario()

Examples

bs <- boletin_sumario(14, 3)

Check code

Description

Check code

Usage

check_code(id)

Arguments

id

Code of an official publication of the Senate

Value

TRUE if passes all the checks

Examples

check_code("BOCG_S_1_1")
check_code("BOCG_B_1_1")
check_code("BOCG_D_1_1_1")

Comisiones

Description

Look up the comisiones and ponencias of a legislature. Relevant to know the code of the work groups.

Usage

comisiones(legislatura)

Arguments

legislatura

A numeric value above 12 (No information prior to then).

Value

A data.frame with the comisiones and ponencias of that legislature.

Examples

if (interactive()) {
   comisiones(13)
}

Check individual session

Description

Check individual session

Usage

detalles(url)

Arguments

url

A url path to a session.

Value

A data.frame with all the information about a session.

See Also

plenarias()

Examples

if (interactive()) {
    pl <- plenarias(10)
    detalles(pl$fichUrlDetalleSesion[1])
}

Document CVE

Description

Code needd to retrieve data about a document.

Usage

document_csv(legislatura, sesion, number)

Arguments

legislatura

A numeric value. Constituent was 0.

sesion

A numeric value above 0.

number

A numeric value of

Value

A character vector of a valid CVE.

See Also

Other generators of CVE: boletin_csv(), sumario_csv()

Examples

document_csv(14, 1, 1)

A document

Description

A document

Usage

documento(cve)

Arguments

cve

A character with a document CVE.

See Also

document_csv()

Other types of documents: sumario()

Examples

document_csv <- "BOCG_D_14_110_901"
if (interactive()) {
    documento(document_csv)
}

Political groups and parties

Description

Retrieves the data for each term of the groups and political parties present

Usage

grupos(legislatura)

Arguments

legislatura

A numeric value above 12 (No information prior to then).

Value

A matrix with all the information available.

Examples

if (interactive()){
    grupos(13)
}

Individual document of Iniciativa parlamentaria

Description

Retrieve information about an individual iniciativa parlamentaria.

Usage

iniciativa_parlamentaria(legislatura, numex)

Arguments

legislatura

A numeric value. Constituent was 0.

numex

String code of the document of the form XXX/YYYYYY.

Value

A data.frame with the situation, the title the type of document, dates and many more.

Examples

document_csv <- "BOCG_D_14_110_901"
if (interactive()){
    d <- documento(document_csv)
    hd <- iniciativa_parlamentaria(14, d$NUMEXP)
}

Look up the legislative iniciatives

Description

Look up the legislative iniciatives

Usage

iniciativas(legislatura)

Arguments

legislatura

A numeric value. Constituent was 0.

Value

A data.frame with the initiatives of that legislature.

See Also

iniciativas_parlamentarias

Examples

if (interactive()) {
    iniciativas(14)
}

Approved laws

Description

Check how many laws were approved. Note it might now return all the laws approved.

Usage

leyes(legislatura)

Arguments

legislatura

A numeric value. Constituent was 0.

Value

A data.frame with the approved laws and related information.

Examples

if (interactive()) {
    l <- leyes(14)
    head(l)
}

Mociones

Description

Download mociones

Usage

mociones(legislatura)

Arguments

legislatura

A numeric value. Constituent was 0.

Value

A data.frame with information about the mociones.

See Also

iniciativas_parlamentarias()

Examples

if (interactive()) {
    mociones(13)
}

Organization chart

Description

Retrieves the relationships between people responsible of the Senate. At the moment due to limitation on the website only works on the 13 legislature.

Usage

organigrama(legislatura = 13)

Arguments

legislatura

A numeric value above 12 (No information prior to then).

Value

A data.frame with all the information available.

Examples

head(organigrama())

Plenary sessions

Description

How many session have been.

Usage

plenarias(legislatura = 10)

Arguments

legislatura

A numeric value above 12 (No information prior to then).

Value

A data.frame with the information available.

Examples

if (interactive()) {
    head(plenarias(10))
}

Retrieves the open data of a senator.

Description

Retrieves the open data of a senator.

Usage

senador(legislatura, codigo)

Arguments

legislatura

A numeric value. Constituent was 0.

codigo

Number or idweb of the senator.

Examples

if (interactive()) {
    s <- senador(14, 19050)
    head(s)
}

Senators since 1977

Description

Past and current appointed members.

Usage

senadores(legislatura = 12:14)

Arguments

legislatura

A numeric value above 12 (No information prior to then).

Value

A data.frame with the information available.

Examples

if (interactive()) {
    head(senadores(12))
}

Retrieve the document of sumario

Description

Returns the summary of a session in a tidy way. If multiple authors are involved in a disposition and multiple documents they get mixed.

Usage

sumario(cve)

Arguments

cve

The character of the CVE of the document.

Value

A data.frame with a summary of the session, date, documents, authors.

See Also

Other types of documents: documento()

Examples

sumario_csv <- sumario_csv(14, 3)
if (interactive()) {
    head(sumario(sumario_csv))
}

Summary code for a session

Description

Creates the code of the summary of a session of the senate.

Usage

sumario_csv(legislatura, sesion)

Arguments

legislatura

A numeric value. Constituent was 0.

sesion

A numeric value above 0.

Value

A character id of the code for the summary of that session.

See Also

Other generators of CVE: boletin_csv(), document_csv()

Examples

sumario_csv(14, 1)

Votos

Description

Retrieve votes in a sesion.

Usage

votos(legislatura, sesion, votacion = NULL)

Arguments

legislatura

A numeric value. Constituent was 0.

sesion

The number of the meeting.

votacion

Number of the vote.

Value

A votos class with information about who voted what.

Examples

votos_64 <- votos(14, 64)
votos_3_8 <- votos(14, 3, 8)