Package: sage 0.2.0

Noah Dasanaike

sage: 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.

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

sage_0.2.0.tar.gz
sage_0.2.0.zip(r-4.7-any)sage_0.2.0.zip(r-4.6-any)
sage_0.2.0.tar.gz(r-4.7-any)sage_0.2.0.tar.gz(r-4.6-any)
sage_0.2.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
sage/json (API)

# Install 'sage' in R:
install.packages('sage', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/noahdasanaike/sage/issues

On CRAN:

Conda:

1.70 score 10 scripts 7 exports 21 dependencies

Last updated from:79d90bd492. Checks:6 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK111
source / vignettesOK189
linux-releaseOK108
windows-develOK82
windows-releaseOK88
wasm-releaseOK104

Exports:sage_columnssage_countriessage_loadsage_polygonssage_preference_votessage_set_sourcesage_years

Dependencies:arrowassertthatbitbit64clicpp11dplyrgenericsgluelifecyclemagrittrpillarpkgconfigpurrrR6rlangtibbletidyselectutf8vctrswithr