Skip to contents

Creates two data frames that summarize the differences by columns for two versions of the same data frame. The first provides higher level summary statistics on the number of columns in each data frame, the number of columns with changes, and the number of columns that have the same name but different classes. The second data frame lists by column the number of changes, whether the column was included in the new and/or old data frame, and the original column class.

Usage

summarize_compare_cols(
  df1,
  df2,
  cc_out,
  df_standard_cols,
  comparison_table_diff
)

Arguments

df1, df2

data frames to compare

cc_out

a list output from compare_cols()

df_standard_cols

a list returned from standardize_col_order()

comparison_table_diff

the comparison_table_diff list element of a compare_df_wrapper() output.

Value

a named list containing two data frames:

  • report_simple a data frame with higher level summary statistics

  • report_by_col a data frame that lists summary statistics by column name