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
DESCRIPTION |NEWS
card.svg |card.png
retroharmonize/json (API)

# 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

On CRAN:

Conda:

7.44 score 10 stars 98 scripts 564 downloads 50 exports 40 dependencies

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

TargetResultTimeFilesSyslog
linux-devel-x86_64OK153
source / vignettesOK223
linux-release-x86_64OK166
macos-release-arm64OK132
macos-oldrel-arm64OK105
windows-develOK115
windows-releaseOK101
windows-oldrelOK126
wasm-releaseOK127

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

Harmonizing Concepts, Questions, and Variables
Concept | Questions | Reproducible research tasks | Question Banks | Literature review | Coding tasks

Last update: 2026-05-19
Started: 2022-07-03

Value Labels and Codelists
Use standard codelists | Harmonize Labels | Conceptual, Literature and Documentation tasks | Coding tasks

Last update: 2026-05-19
Started: 2022-07-03

Case Study: Working With Afrobarometer surveys
Importing Afrobarometer Files | Working with metadata | Harmonization | Analyzing the harmonized data

Last update: 2026-01-12
Started: 2020-07-21

Survey Harmonization
Tasks in the harmonization workflow | How we help harmonization

Last update: 2026-01-12
Started: 2021-12-04

documentation

Last update: 2026-01-09
Started: 2021-12-08

Getting Started
Importing data | Mapping information, harmonizing concepts | Crosswalk table

Last update: 2026-01-09
Started: 2021-12-14

Harmonize Value Labels
Harmonize value codes and labels | Scenario 1 | Scenario 2 | Scenario 3 | Base Types & Summary | Combination of harmonized values | Binding surveys together

Last update: 2026-01-09
Started: 2020-07-09

The labelled_spss_survey class
Create A labelled_spss_survey Vector | Coercion rules and type casting | Arithmetics

Last update: 2026-01-09
Started: 2020-07-10

Working with a Crosswalk Table
Crosswalk Table | Create a crosswalk table | Variable name harmonization | Value numeric code and label harmonization | A reproducible recoding and relabelling | Subsetting | Variable Name Harmonization | Further Steps

Last update: 2026-01-09
Started: 2021-12-07

Working With Survey Metadata
Working With a Single Survey | Working With Multiple Surveys

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