Error in Confusion Matrix : the data and reference factors must have the same number of levels Error in Confusion Matrix : the data and reference factors must have the same number of levels r r