Package index
-
CEB_results
- Election results according to Central Election Board
-
adams_seats()
- Function to calculate the allocated seats according to the Adams method in a given electoral district.
-
aggregate_election_data()
- Aggregate elections data at provided level (ccaa, prov, etc)
-
apportionment_methods
- Apportionment methods in the global democracy
-
cod_INE_ccaa
- INE's code for ccaa and provinces
-
cod_INE_mun
- INE's code for municipalities
-
cod_INE_prov
- INE's code for ccaa and provinces
-
cod_INE_prov_ccaa
- INE's code for ccaa and provinces
-
dates_elections_spain
- Dates of Spanish elections
-
deans_seats()
- Function to calculate the allocated seats according to the Dean method in a given electoral district.
-
detect_years()
- Auxiliary function to get election date
-
dhondt_seats()
- Function to compute the allocated seats according to the D'Hondt method in a given electoral district.
-
extract_code()
- Extract region codes from the poll stations codes
-
fptp_seats()
- Function to calculate the allocated seats according to the First Past the Post method in a given electoral district.
-
get_election_data()
- Function to get jointly information on polling stations and votes for candidacies.
-
global_dict_parties
- Dictionary for parties and candidacies
-
hagenbach_bischoff_seats()
- Function to calculate the allocated seats according to the Hagenbach-Bischoff method in a given electoral district.
-
hamilton_seats()
- Function to calculate the allocated seats according to the Hamilton method in a given electoral district.
-
hill_seats()
- Function to calculate the allocated seats according to the Hill method in a given electoral district.
-
import_candidacies_data()
- Import candidacies data
-
import_mun_census_data()
- Import municipal census data
-
import_poll_station_data()
- Import poll station data
-
import_survey_data()
- Import survey data
-
pollspain-package
pollspain
- pollspain – A grammar for the analysis of electoral and poll data
-
recod_mun()
- Recode municipalities
-
seat_allocation()
- Function to compute the allocated seats according to the chosen method for a given electoral districts.
-
summary_election_data()
- Summaries of the electoral and candidacies ballots data for a given aggregation level (ccaa, prov, etc)
-
summary_survey_data()
- Summaries of the poll data for a given election.
-
total_seats_spain
- Number of parliament seats allocated to each province for the general Spanish elections.
-
type_to_code_election()
- Conversion type election to code
-
webster_seats()
- Function to calculate the allocated seats according to the Webster method in a given electoral district.