
Load and validate electoral data from Excel
load_and_validate.RdLoads all necessary data from an Excel file with multiple sheets, validates it, and returns input data in a list.
Details
Required sheets in Excel:
partidos: party codes for recuerdo and IDV
mt_simplificada: transfer matrices with 'N' row
patrones: historical patterns by province
anteriores_elecciones: previous electoral results
n_diputados: seats per province
retoques: manual adjustments (optional)
small_parties: small parties (optional)
See also
Other data-functions:
draw_mt(),
validate_input_data()