so I need to use a dataset called wine at

http://archive.ics.uci.edu/ml/datasets/wine

and then to use the k-nearest neighbor classifier with k=1 and k=5. and then classify the data into type 1 type 2 or type 3.

so what I did was...

-load the dataset called wine

-name the columns, with the first column being the type (this part was correct)

-> knn(wine, cl, k = 1, l = 0, prob = FALSE, use.all = TRUE)

but I am not really sure what the arguments mean. I read it at

http://stat.ethz.ch/R-manual/R-devel/library/class/html/knn.html

but it just doesn't make sense.

and I thought that what I was supposed to do was just have one command with k=1 and then run it again with k=5

I also tried just stripping all the stuff I thought was useless and using the bare minimum

> knn(wine1, k = 1)

but I got this error...

Error in knn(wine1, k = 1) : unused argument(s) (k = 1)

If someone can please please help me, I would very much appreciate it.