Retrieve Slices of the Small-Area Global Elections Archive

Downloads and subsets slices of the Small-Area Global Elections (SAGE) archive, a harmonized collection of polling-station and precinct-level election results, without having to read monolithic country-level files. Reads partitioned 'Parquet' from a public bucket (configurable through the 'SAGE_SOURCE' environment variable, the 'sage_set_source()' function, or a local copy of the archive) and exposes a 'sage_load(country, years, columns)' function returning a 'tibble', plus helpers for the accompanying boundary polygons and candidate-level vote sidecars. See < https://github.com/noahdasanaike/sage> for the archive itself.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("sage")

0.2.0 by Noah Dasanaike, 4 hours ago


https://github.com/noahdasanaike/sage


Report a bug at https://github.com/noahdasanaike/sage/issues


Browse source code at https://github.com/cran/sage


Authors: Noah Dasanaike [aut, cre, cph] , Dmitry Shkolnik [ctb]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports arrow, dplyr, rlang, tibble, utils

Suggests curl, sf, sfarrow, testthat


See at CRAN