I had a dataset where there were some ID's in my exposure window data that didn't appear in the prediction data.
Error in setstate(x, statex):
all required_columns %in% names(x) is not TRUE
Error in setstate(y, statey):
all required_columns %in% names(x) is not TRUE
then when I checked head(y) I saw that the names of y had been changed to "intervalaverage_end_original_class_copy" and "intervalaverage_start_original_class_copy"
This needs a more informative error and ideally it wouldn't alter the data object that's being passed in.
I had a dataset where there were some ID's in my exposure window data that didn't appear in the prediction data.
Error in setstate(x, statex):
all required_columns %in% names(x) is not TRUE
Error in setstate(y, statey):
all required_columns %in% names(x) is not TRUE
then when I checked head(y) I saw that the names of y had been changed to "intervalaverage_end_original_class_copy" and "intervalaverage_start_original_class_copy"
This needs a more informative error and ideally it wouldn't alter the data object that's being passed in.