title: R Unused argument in KNN
body: <p>I am trying to apply the KNN algorithm to a large dataset, but at the moment I keep getting an error. See the code below:</p>
  
  <pre><code>df &lt;- list(`digits/trainingDigits/0_0.txt` = c(0, 1, 1, 0), `digits/trainingDigits/0_1.txt` = c(0, 1, 0, 0), `digits/trainingDigits/0_10.txt` = c(0, 0, 1, 0))
  
  df &lt;- do.call(rbind, unname(df))
  
  df2 &lt;- list(c(0, 1, 1, 0), c(0, 1, 1, 0))
  df2 &lt;- t(as.data.frame(df2))
  
  df3 &lt;- c(0, 1, 0)
  df3 &lt;- t(as.data.frame(df3))
  
  library(FNN)
  
  knn(train=df, test=df2, cl=df3, k=5, norm = FALSE)
  </code></pre>
  
  <p>The train set should be a dataset with four variables and three observations.</p>
  
  <p>The test set should be a dataset with four variables and two observations.</p>
  
  <p>The class should be a dataframe with one variable and three observations-</p>
  
  <p>When applying the algorithm it says:</p>
  
  <p>Error in knn(train = df, test = df2, cl = df3, k = 5, norm = FALSE) : 
    unused argument (norm = FALSE)</p>
  
  <p>Thank you for your help!</p>