report_var_mods {eHDPrep}R Documentation

Track changes to dataset variables

Description

Reports if variables have been added, removed, or are preserved between two data frames. Intended to be used to review quality control / data preparation.

Usage

report_var_mods(before_tbl = NULL, after_tbl = NULL)

Arguments

before_tbl

Data frame from before modifications were made.

after_tbl

Data frame from after modifications were made.

Value

Tibble containing two columns. 'variable' contains name of each variable. 'presence' contains the presence of the variable in after_tbl.

Examples

example_data_merged <- merge_cols(example_data, diabetes_type,
diabetes, "diabetes_merged", rm_in_vars = TRUE)

report_var_mods(example_data, example_data_merged)

[Package eHDPrep version 1.3.3 Index]