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:Daniel Antal [aut, cre], Marta Kolczynska [ctb]

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://dataobservatory-eu.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/dataobservatory-eu/retroharmonize/issues

On CRAN:

Conda:

8.36 score 10 stars 82 scripts 49 downloads 50 exports 40 dependencies

Last updated from:a49fd69dbf. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK168
source / vignettesOK237
linux-release-x86_64OK190
macos-release-arm64OK132
macos-oldrel-arm64OK109
windows-develOK127
windows-releaseOK119
windows-oldrelOK125
wasm-releaseOK117

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 pageTopics
Labelled to labelled_spss_surveyas_labelled_spss_survey
Collect labels from metadata filecollect_na_labels collect_val_labels
Concatenate haven_labelled_spss vectorsconcatenate
Create a survey codebookcodebook_surveys_create codebook_waves_create create_codebook
Crosswalk and harmonize surveyscrosswalk crosswalk_surveys
Document survey item provenancedocument_survey_item
Document survey listsdocument_surveys document_waves
Harmonize na_values in haven_labelled_spssharmonize_na_values
Harmonize values in surveysharmonize_survey_values harmonize_waves
Read a survey from a CSV fileharmonize_survey_variables
Harmonize values and labels of labelled vectorsharmonize_values
Harmonize variable names across surveysharmonize_var_names
Validate a crosswalk tablecrosswalk_table_create is.crosswalk_table
Create a survey objectis.survey_df print.survey_df survey_df
Normalize value and variable labelslabel_normalize val_label_normalize var_label_normalize
Coercion methods for labelled survey vectorsas_character as_factor as_numeric labelled_spss_survey_coercion
Merge and harmonize surveysmerge_surveys
Deprecated wrapper for `merge_surveys()`merge_waves
Create metadata tables from survey datasetsmetadata_create metadata_waves_create
Create variable-level metadata from a survey datasetmetadata_survey_create
Harmonize SPSS-style missing value rangesna_range_to_values
Labelled SPSS-style vectors with survey provenanceformat.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 listpull_survey
Read a survey dataset from a CSV fileread_csv
Read a Stata `.dta` survey fileread_dta
Read a survey from an `.rds` fileread_rds
Read SPSS survey filesread_spss
retroharmonize: Retrospective harmonization of survey data filesretroharmonize
Subset and optionally harmonize surveyssubset_save_surveys subset_surveys subset_waves
Create a survey data frameis.survey summary.survey survey