municipios | R Documentation |
'municipios()' downloads, formats and imports to the environment the electoral results data of the selected election at the municipality level.
municipios(tipo_eleccion, anno, mes, distritos = FALSE)
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. |
distritos |
Should district level results be returned when available? The default is FALSE. Please be aware when summarizing the data that districts = TRUE will return separate rows for the total municipal level and for each of the districts. |
Dataframe with the electoral results data at the municipality level.
data <- municipios(tipo_eleccion = "congreso", anno = "2019", mes = "11")
str(data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.