1

What is the meaning of this error, when I use knn:

g=summary(knn(train, test, l, k = 3))
Error in knn(train, test, l, k = 3) :
  NA/NaN/Inf in foreign function call (arg 6)

In addition: Warning messages:
1: In knn(train, test, l, k = 3) : NAs introduced by coercion
2: In knn(train, test, l, k = 3) : NAs introduced by coercion
Nandu
  • 11
  • 1
  • 2

0 Answers0