Package: retroharmonize 0.2.8


Daniel Antal
retroharmonize: Ex Post Survey Data Harmonization
Assist in reproducible retrospective (ex-post) harmonization of data, particularly individual level survey data, by providing tools for organizing metadata, standardizing the coding of variables, and variable names and value labels, including missing values, and documenting the data transformations, with the help of comprehensive s3 classes.
Authors:
retroharmonize_0.2.8.tar.gz
retroharmonize_0.2.8.zip(r-4.7)retroharmonize_0.2.8.zip(r-4.6)retroharmonize_0.2.8.zip(r-4.5)
retroharmonize_0.2.8.tgz(r-4.6-any)retroharmonize_0.2.8.tgz(r-4.5-any)
retroharmonize_0.2.8.tar.gz(r-4.7-any)retroharmonize_0.2.8.tar.gz(r-4.6-any)
retroharmonize_0.2.8.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
card.svg |card.png
retroharmonize/json (API)
NEWS
| # Install 'retroharmonize' in R: |
| install.packages('retroharmonize', repos = c('https://ropengov.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/dataobservatory-eu/retroharmonize/issues
Pkgdown/docs site:https://retroharmonize.dataobservatory.eu
Last updated from:a49fd69dbf. Checks:9 OK. Indexed: no.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 208 | ||
| source / vignettes | OK | 235 | ||
| linux-release-x86_64 | OK | 147 | ||
| macos-release-arm64 | OK | 116 | ||
| macos-oldrel-arm64 | OK | 138 | ||
| windows-devel | OK | 143 | ||
| windows-release | OK | 109 | ||
| windows-oldrel | OK | 130 | ||
| wasm-release | OK | 120 |
Exports:%>%as_characteras_factoras_labelled_spss_surveyas_numericcodebook_surveys_createcodebook_waves_createcollect_na_labelscollect_val_labelsconcatenatecreate_codebookcrosswalkcrosswalk_surveyscrosswalk_table_createdocument_survey_itemdocument_surveysdocument_wavesharmonize_na_valuesharmonize_survey_valuesharmonize_survey_variablesharmonize_valuesharmonize_var_namesharmonize_waveshereis.crosswalk_tableis.labelled_spss_surveyis.na_range_to_valuesis.surveyis.survey_dflabel_normalizelabelled_spss_surveymerge_surveysmerge_wavesmetadata_createmetadata_survey_createna_range_to_valuespull_surveyread_csvread_dtaread_rdsread_spssread_surveysread.csvsubset_save_surveyssubset_surveyssubset_wavessurveysurvey_dfval_label_normalizevar_label_normalize
Dependencies:assertthatbitbit64clicliprcpp11crayondatasetdplyrforcatsfsgenericsgluehavenherehmsISOcodeslabelledlifecyclemagrittrpillarpkgconfigprettyunitsprogresspurrrR6readrrlangrprojrootsnakecasestringistringrtibbletidyrtidyselecttzdbutf8vctrsvroomwithr
Case Study: Working With Afrobarometer surveys
Rendered fromafrobarometer.Rmdusingknitr::rmarkdownon May 21 2026.Last update: 2026-01-12
Started: 2020-07-21
documentation
Rendered fromdocumentation.Rmdusingknitr::rmarkdownon May 21 2026.Last update: 2026-01-09
Started: 2021-12-08
Getting Started
Rendered fromretroharmonize.Rmdusingknitr::rmarkdownon May 21 2026.Last update: 2026-01-09
Started: 2021-12-14
Harmonize Value Labels
Rendered fromharmonize_labels.Rmdusingknitr::rmarkdownon May 21 2026.Last update: 2026-01-09
Started: 2020-07-09
Harmonizing Concepts, Questions, and Variables
Rendered fromconcept.Rmdusingknitr::rmarkdownon May 21 2026.Last update: 2026-05-19
Started: 2022-07-03
Survey Harmonization
Rendered fromsurvey_harmonization.Rmdusingknitr::rmarkdownon May 21 2026.Last update: 2026-01-12
Started: 2021-12-04
The labelled_spss_survey class
Rendered fromlabelled_spss_survey.Rmdusingknitr::rmarkdownon May 21 2026.Last update: 2026-01-09
Started: 2020-07-10
Value Labels and Codelists
Rendered fromcodelist.Rmdusingknitr::rmarkdownon May 21 2026.Last update: 2026-05-19
Started: 2022-07-03
Working with a Crosswalk Table
Rendered fromcrosswalk.Rmdusingknitr::rmarkdownon May 21 2026.Last update: 2026-01-09
Started: 2021-12-07
Working With Survey Metadata
Rendered frommetadata.Rmdusingknitr::rmarkdownon May 21 2026.Last update: 2026-01-09
Started: 2021-12-07
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Labelled to labelled_spss_survey | as_labelled_spss_survey |
| Collect labels from metadata file | collect_na_labels collect_val_labels |
| Concatenate haven_labelled_spss vectors | concatenate |
| Create a survey codebook | codebook_surveys_create codebook_waves_create create_codebook |
| Crosswalk and harmonize surveys | crosswalk crosswalk_surveys |
| Document survey item provenance | document_survey_item |
| Document survey lists | document_surveys document_waves |
| Harmonize na_values in haven_labelled_spss | harmonize_na_values |
| Harmonize values in surveys | harmonize_survey_values harmonize_waves |
| Read a survey from a CSV file | harmonize_survey_variables |
| Harmonize values and labels of labelled vectors | harmonize_values |
| Harmonize variable names across surveys | harmonize_var_names |
| Validate a crosswalk table | crosswalk_table_create is.crosswalk_table |
| Create a survey object | is.survey_df print.survey_df survey_df |
| Normalize value and variable labels | label_normalize val_label_normalize var_label_normalize |
| Coercion methods for labelled survey vectors | as_character as_factor as_numeric labelled_spss_survey_coercion |
| Merge and harmonize surveys | merge_surveys |
| Deprecated wrapper for `merge_surveys()` | merge_waves |
| Create metadata tables from survey datasets | metadata_create metadata_waves_create |
| Create variable-level metadata from a survey dataset | metadata_survey_create |
| Harmonize SPSS-style missing value ranges | na_range_to_values |
| Labelled SPSS-style vectors with survey provenance | format.retroharmonize_labelled_spss_survey is.labelled_spss_survey is.na.retroharmonize_labelled_spss_survey labelled_spss_survey levels.retroharmonize_labelled_spss_survey mean.retroharmonize_labelled_spss_survey median.retroharmonize_labelled_spss_survey names<-.retroharmonize_labelled_spss_survey print.retroharmonize_labelled_spss_survey quantile.retroharmonize_labelled_spss_survey sum.retroharmonize_labelled_spss_survey summary.retroharmonize_labelled_spss_survey weighted.mean.retroharmonize_labelled_spss_survey [.retroharmonize_labelled_spss_survey |
| Retrieve a survey from a survey list | pull_survey |
| Read a survey dataset from a CSV file | read_csv |
| Read a Stata `.dta` survey file | read_dta |
| Read a survey from an `.rds` file | read_rds |
| Read SPSS survey files | read_spss |
| retroharmonize: Retrospective harmonization of survey data files | retroharmonize |
| Subset and optionally harmonize surveys | subset_save_surveys subset_surveys subset_waves |
| Create a survey data frame | is.survey summary.survey survey |