View source: R/get_election_data.R
get_election_data | R Documentation |
Función que descarga datos electorales de escrutinios provisorios nacionales desde 2003
(Function that downloads national electoral data since 2003 from provisional count)
get_election_data(
district = NULL,
category = NULL,
round = NULL,
year = NULL,
level = "provincia",
long = TRUE,
raw = FALSE
)
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 (a character with a name for the electoral category: deputy |
round |
un character para tipo de elección: primaria (a character with a name for the election round: primary |
year |
un integer para el año de eleccion (an integer for the year of choice). |
level |
un character para seleccionar level de agregación de los resultados: |
long |
un boleano para estructura de los datos. Por default (a boolean for data structure. By default |
raw |
un boleano (a |
devuelve un tibble con class "grouped_df", "tbl_df","tbl", "data.frame"
con los resultados de una eleccion determinada
(returns a tibble with electoral results of interest with class "grouped_df", "tbl_df","tbl", "data.frame"
).
get_multiple_elections
get_election_data(district = "caba",
category = "dip",
round = "paso",
year = 2011,
level = "provincia",
long = TRUE, raw = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.