Do a git style comparison between two data frames of similar columnar structure
compare_df(
df_new,
df_old,
group_col,
exclude = NULL,
tolerance = 0,
tolerance_type = "ratio",
stop_on_error = TRUE,
keep_unchanged_rows = FALSE,
keep_unchanged_cols = TRUE,
change_markers = c("+", "-", "="),
round_output_to = 3
)
The data frame for which any changes will be shown as an addition (green)
The data frame for which any changes will be shown as a removal (red)
A character vector of a string of character vector showing the columns by which to group_by.
The columns which should be excluded from the comparison
The amount in fraction to which changes are ignored while showing the visual representation. By default, the value is 0 and any change in the value of variables is shown off. Doesn't apply to categorical variables.
Defaults to 'ratio'. The type of comparison for numeric values, can be 'ratio' or 'difference'
Whether to stop on acceptable errors on not
whether to preserve unchanged values or not. Defaults to FALSE
whether to preserve unchanged values or not. Defaults to TRUE
what the different change_type nomenclature should be eg: c("new", "old", "unchanged").
Number of digits to round the output to. Defaults to 3.