Add dummy columns to data, if necessary.

append_dummy_cols(data = NULL, num_cols_expect = NULL, add = TRUE)

Arguments

data

data.frame.

num_cols_expect

numeric.

add

logical. whether or not to try to add a dummy column. Only applied if the difference between the expected and actual number of columns is 1 (where the expected is greater than the actual).

Value

data.frame.

Details

To be used exclusively by wrapper_func().