candidatos() downloads, formats and imports to the environment the data of the candidates from the electoral lists of the selected elections.

## Usage

candidatos(tipo_eleccion, anno, mes, nivel)

## Arguments

tipo_eleccion

The type of choice you want to download. The accepted values are "congreso", "senado", "europeas" o "municipales".

anno

The year of the election in YYYY format.

mes

The month of the election in MM format.

nivel

The administrative level for which the data is wanted ("mesa" for polling stations or "municipio" for municipalities). Only necessary when tipo_eleccion = "senado"

## Value

data.frame with the candidates data. If tipo_eleccion = "senado" a column called votos is included with the votes recieved by each candidate. If other type of election is selected this column is not included since the votes are not received by the specific candidates but by the closed list of the party.