retroharmonize0.2.7 package

Ex Post Survey Data Harmonization

as_labelled_spss_survey

Labelled to labelled_spss_survey

collect_val_labels

Collect labels from metadata file

concatenate

Concatenate haven_labelled_spss vectors

convert_to_labelled_spss

Convert to haven_labelled_spss

create_codebook

Create a survey codebook

crosswalk_surveys

Crosswalk and harmonize surveys

crosswalk_table_create

Validate a crosswalk table

document_survey_item

Document survey item harmonization

document_surveys

Document survey lists

find_import_function

Find import function by file extension

harmonize_na_values

Harmonize na_values in haven_labelled_spss

harmonize_survey_values

Harmonize values in surveys

harmonize_survey_variables

Read a survey from a CSV file

harmonize_values

Harmonize the values and labels of labelled vectors

harmonize_var_names

Harmonize the variable names of surveys

here

Here

is.na_range_to_values

Test whether missing values need harmonization

label_normalize

Normalize value and variable labels

labelled_spss_survey_coercion

Coercion methods for labelled survey vectors

labelled_spss_survey_vctrs

vctrs type and casting methods for labelled survey vectors

labelled_spss_survey

Labelled SPSS-style vectors with survey provenance

merge_surveys

Merge surveys

metadata_create

Create a metadata table from several surveys

metadata_initialize

Initialize a metadata data frame

metadata_survey_create

Create a metadata table

na_range_to_values

Harmonize SPSS-style missing value ranges

pipe

Pipe operator

pull_survey

Pull a survey from a survey list

read_csv

Read csv file

read_dta

Read Stata DTA files (.dta) files

read_rds

Read rds file

read_spss

Read SPSS (.sav, .zsav, .por) files. Write .sav and .zsav fi...

read_surveys

Read survey file(s)

read.csv

Data Input

retroharmonize-package

retroharmonize: Ex Post Survey Data Harmonization

retroharmonize

retroharmonize: Retrospective harmonization of survey data files

subset_survey_file

Subset surveys from files

subset_survey_memory

Subset surveys in memory

subset_surveys

Subset and optionally harmonize surveys

survey_df

Create a survey object

survey

Create a survey data frame

validate_harmonize_labels

Validate harmonize_labels parameter Check if "from", "to", and "numeri...

vec_convert_na

Convert labelled missing values to NA

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.

  • Maintainer: Daniel Antal
  • License: GPL-3
  • Last published: 2026-01-14