Implements sanity check for the input data. This function is for internal use and is called
by the dcem_train
.
validate_data(columns, numcols)
(string): A comma separated list of columns that needs to be removed from the dataset. Default: ''
(numeric): Number of columns in the dataset.
boolean: TRUE if the columns exists otherwise FALSE.
An example would be to check if the column to be removed exist
or not? trim_data
internally calls this function before removing
the column(s).