I get the error Error in factor(newCases[, a], levels = 1:nlevels(data[, a]), labels = levels(data[, : invalid \'labels\'; length 0 should be 1 or 2
This is my code smote