get_election_results: Descarga resultados electorales (_Download electoral...

View source: R/get_election_results.R

get_election_resultsR Documentation

Descarga resultados electorales (Download electoral results)

Description

Función que descarga resultados electorales agregados, nacionales y provinciales desde 2007

(Function that downloads national electoral data since 2007)

Usage

get_election_results(
  district = NULL,
  category = NULL,
  round = NULL,
  year = NULL
)

Arguments

district

un character con código para Argentina y las 24 provincias

(a named character with code for Argentina and the 24 provinces).

category

un character para la categoría electoral: diputado dip, senador sen o presidente presi

(a character with a name for the electoral category: deputy dip, senator sen or president presi).

round

un character para tipo de elección: primaria paso o general gral

(a character with a name for the election round: primary paso or general gral).

year

un integer para el año de eleccion

(an integer for the year of choice).

Value

devuelve un tibble con class "spec_tbl_df", "tbl_df","tbl", "data.frame" con los resultados de una elección determinada

(returns a tibble with electoral results of interest with class "spec_tbl_df", "tbl_df","tbl", "data.frame").

Examples

 get_election_data(district = "caba",
                   category = "dip",
                   round = "paso",
                   year = 2011,
                   level = "provincia",
                   long = TRUE, raw = FALSE)

PoliticaArgentina/electorAr documentation built on July 20, 2023, 10:27 a.m.