Package: retroharmonize 0.2.5.003
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.5.003.tar.gz
retroharmonize_0.2.5.003.zip(r-4.5)retroharmonize_0.2.5.003.zip(r-4.4)retroharmonize_0.2.5.003.zip(r-4.3)
retroharmonize_0.2.5.003.tgz(r-4.4-any)retroharmonize_0.2.5.003.tgz(r-4.3-any)
retroharmonize_0.2.5.003.tar.gz(r-4.5-noble)retroharmonize_0.2.5.003.tar.gz(r-4.4-noble)
retroharmonize_0.2.5.003.tgz(r-4.4-emscripten)retroharmonize_0.2.5.003.tgz(r-4.3-emscripten)
retroharmonize.pdf |retroharmonize.html✨
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/ropengov/retroharmonize/issues
Pkgdown site:https://retroharmonize.dataobservatory.eu
Last updated 10 days agofrom:5240dc603e. Checks:1 OK, 6 ERROR. Indexed: yes.
Target | Result | Latest binary |
---|---|---|
Doc / Vignettes | OK | Dec 29 2024 |
R-4.5-win | ERROR | Dec 29 2024 |
R-4.5-linux | ERROR | Dec 29 2024 |
R-4.4-win | ERROR | Dec 29 2024 |
R-4.4-mac | ERROR | Dec 29 2024 |
R-4.3-win | ERROR | Dec 29 2024 |
R-4.3-mac | ERROR | Dec 29 2024 |
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:assertthatbitbit64clicliprcpp11crayondatasetdplyrfansiforcatsfsgenericsgluehavenherehmsISOcodeslabelledlifecyclemagrittrpillarpkgconfigprettyunitsprogresspurrrR6readrrlangrprojrootsnakecasestringistringrtibbletidyrtidyselecttzdbutf8vctrsvroomwithr
Case Study: Working With Afrobarometer surveys
Rendered fromafrobarometer.Rmd
usingknitr::rmarkdown
on Dec 29 2024.Last update: 2021-12-12
Started: 2020-07-21
documentation
Rendered fromdocumentation.Rmd
usingknitr::rmarkdown
on Dec 29 2024.Last update: 2021-12-12
Started: 2021-12-08
Getting Started
Rendered fromretroharmonize.Rmd
usingknitr::rmarkdown
on Dec 29 2024.Last update: 2021-12-14
Started: 2021-12-14
Harmonize Value Labels
Rendered fromharmonize_labels.Rmd
usingknitr::rmarkdown
on Dec 29 2024.Last update: 2021-12-07
Started: 2020-07-09
Harmonizing Concepts, Questions, and Variables
Rendered fromconcept.Rmd
usingknitr::rmarkdown
on Dec 29 2024.Last update: 2022-09-24
Started: 2022-07-03
Survey Harmonization
Rendered fromsurvey_harmonization.Rmd
usingknitr::rmarkdown
on Dec 29 2024.Last update: 2022-09-24
Started: 2021-12-04
The labelled_spss_survey class
Rendered fromlabelled_spss_survey.Rmd
usingknitr::rmarkdown
on Dec 29 2024.Last update: 2021-12-07
Started: 2020-07-10
Value Labels and Codelists
Rendered fromcodelist.Rmd
usingknitr::rmarkdown
on Dec 29 2024.Last update: 2022-09-24
Started: 2022-07-03
Working with a Crosswalk Table
Rendered fromcrosswalk.Rmd
usingknitr::rmarkdown
on Dec 29 2024.Last update: 2024-12-29
Started: 2021-12-07
Working With Survey Metadata
Rendered frommetadata.Rmd
usingknitr::rmarkdown
on Dec 29 2024.Last update: 2022-07-03
Started: 2021-12-07
Readme and manuals
Help Manual
Help page | Topics |
---|---|
Convert labelled_spss_survey vector To Factor | as_factor |
Labelled to labelled_spss_survey | as_labelled_spss_survey |
Create a codelist | codelist_create |
Collect labels from metadata file | collect_na_labels collect_val_labels |
Concatenate haven_labelled_spss vectors | concatenate |
Create a codebook | codebook_surveys_create codebook_waves_create create_codebook |
Crosswalk surveys | crosswalk crosswalk_surveys |
Create a crosswalk table | crosswalk_table_create is.crosswalk_table |
Document survey item harmonization | 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 |
Harmonize survey variables | harmonize_survey_variables |
Harmonize the values and labels of labelled vectors | harmonize_values |
Harmonize the variable names of surveys | harmonize_var_names |
Create a survey data frame | is.survey_df print.survey_df survey_df |
Normalize value and variable labels | label_normalize val_label_normalize var_label_normalize |
Labelled vectors for multiple SPSS surveys | as_character as_numeric format.retroharmonize_labelled_spss_survey is.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 quantile.retroharmonize_labelled_spss_survey sum.retroharmonize_labelled_spss_survey weighted.mean.retroharmonize_labelled_spss_survey |
Merge surveys | merge_surveys merge_waves |
Create a metadata table from several surveys | metadata_create metadata_waves_create |
Create a metadata table | metadata_survey_create |
Harmonize user-defined missing value ranges | is.na_range_to_values na_range_to_values |
Pull a survey from a survey list | pull_survey |
Read csv file | read_csv |
Read Stata DTA files (`.dta`) files | read_dta |
Read rds file | read_rds |
Read SPSS (`.sav`, `.zsav`, `.por`) files. Write `.sav` and `.zsav` files. | read_spss |
retroharmonize: Retrospective harmonization of survey data files | retroharmonize |
Subset surveys | subset_save_surveys subset_surveys subset_waves |
Create a survey data frame | is.survey summary.survey survey |