![](../logo.png)
Force two data frames to have the same columns by creating dummy columns
Source:R/get_comparison.R
insert_dummy_cols.Rd
For each column in data frame 1 that is missing in data frame 2, this
function creates the missing column in data frame 2 and fills it with NA
,
and vice-version. It also makes the classes dummy columns match and ensure
both data frames have the same column order.
Arguments
- df1, df2
data frames to compare
- cc_out
a list output from
compare_cols()
- id_cols
a character vector of id columns output from
compare_cols()