When I execute this code, I get the next wrong about coercionNAs:
data_test_pred <- knn(train = data_train, test = data_test,
cl = data_train_labels, k = 9)
NAs introduced by coercionNAs introduced by coercionError in knn(train = data_train, test = data_test, cl = data_train_labels, :
NA/NaN/Inf in foreign function call (arg 6)
The variable of data_train_labels is two Levels
Factor w/ 2 levels "Prom","No prom": 1 1 1 1 1 1 1 1