Small helper function. Checks if all expected columns are in the data frame and if not, adds a column with all missing variables in the data. Thus, the columns will be made explicitly missing in the data frame.
Small helper function. Checks if all expected columns are in the data frame and if not, adds a column with all missing variables in the data. Thus, the columns will be made explicitly missing in the data frame.