fokus-package | R Documentation |
fokus allows to (pre-)process and clean the raw data, analyze and visualize the cleaned data, create the questionnaires and provides other utility functions around the FOKUS post-voting surveys by the Centre for Democracy Studies Aarau (ZDA) at the University of Zurich, Switzerland.
Some of fokus's functionality is controlled via package-specific global configuration which can either be set via R options or environment variables (the former take precedence). This configuration includes:
Description | R option | Environment variable | Default value |
FOKUS-covered ballot date to fall back to in various functions of this package when it isn't explicitly specified. Basically a means to globally define the ballot date to be processed. One of "2018-09-23" , "2018-11-25" , "2019-10-20" , "2020-09-27" , "2020-10-18" , "2021-11-28" , "2023-06-18" or "2024-10-20" . | fokus.ballot_date | R_FOKUS_BALLOT_DATE | as.Date("2018-09-23") |
FOKUS-covered canton name to fall back to in various functions of this package when it isn't explicitly specified. Basically a means to globally define the canton to be processed. One of "aargau" . | fokus.canton | R_FOKUS_CANTON | "aargau" |
Language to fall back to in various functions of this package when it isn't explicitly specified. Basically a means to globally define the language to process. One of "de" and "en" . | fokus.lang | R_FOKUS_LANG | "de" |
Maximal timespan to preserve the package's pkgpins cache. Cache entries older than this will be deleted upon package loading. | fokus.global_max_cache_age | R_FOKUS_GLOBAL_MAX_CACHE_AGE | "1 day" |
Personal access token of a gitlab.com account with access to the private FOKUS repository. | fokus.token_repo_private | R_FOKUS_TOKEN_REPO_PRIVATE | Sys.getenv("GITLAB_COM_TOKEN") |
Maintainer: Salim Brüggemann salim-b@pm.me (ORCID)
Other contributors:
Centre for Democracy Studies Aarau (ZDA) info@zdaarau.ch [copyright holder]
Useful links:
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.