fact_clean function

Clean factor variables in prediction data