get_argentine_deputies {ArgentinAPI}R Documentation

Get Argentine Deputies (Diputados)

Description

This function retrieves a list of Argentine deputies from the public API endpoint 'https://api.argentinadatos.com/v1/diputados/diputados'. It includes basic information and the official mandate period of each deputy.

Usage

get_argentine_deputies()

Details

The data is returned in descending order of the start date (inicio), showing the most recent mandates first.

Value

A tibble with the following columns:

Note

Requires internet connection. If 'inicio' or 'fin' dates are malformed, parsing may fail.

See Also

GET, fromJSON, arrange

Examples

## Not run: 
deputies <- get_argentine_deputies()
head(deputies)

# Filter currently active deputies
active <- dplyr::filter(deputies, Sys.Date() <= fin)

## End(Not run)


[Package ArgentinAPI version 0.1.0 Index]