When I try to knit my document the following error appears:
But I don´t seem to have any missing data and I can run perfectly the command manually:
table(is.na(test)) FALSE 1122000 table(is.na(train)) FALSE 2278000 table(is.na(train_label)) FALSE 6700
bin_test_pred_1 <- knn(train = train, test = test, cl =train_labelbin, k = 1, prob = TRUE)
Does anyone know where the issue migth be?
Thanks in advance,