Skip to contents

Puts the columns of two data frames in the same order and places the unique identifiers columns to the far left of the data frame. Data frames must have the exact same columns (if not, apply insert_dummy_cols() first)

Usage

standardize_col_order(df1, df2, id_cols)

Arguments

df1, df2

data frames to compare

id_cols

a character vector of id columns output from compare_cols()

Value

a list with two elements:

  • df1: a modified data frame df1

  • df2: a modified data frame df2