Skip to contents

Returns the full detail of an election, including the election type as expanded columns (tipo_codigo, tipo_descripcion).

Usage

get_eleccion(eleccion_id, api_key = NULL)

Arguments

eleccion_id

Integer. The election ID.

api_key

(Opcional) Clave de API para sobrescribir la global solo en esta llamada.

Value

A 1-row tibble with columns: id, tipo_eleccion, year, mes, dia, fecha (Date), codigo_ccaa, numero_vuelta, descripcion, ambito, slug, tipo_codigo, tipo_descripcion.

Examples

if (FALSE) { # \dontrun{
get_eleccion(208)
} # }