Read part of "an introduction to R" (available from R homepage) and realize different types of objects (e.g., vector, factor, list, data frame etc.).
Find any package which can conduct 1-nearest neighbor (available from CRAN). For this homework, we would like to use this method for classifying the data set "iris." "iris" is available from R by default, so you can use
> data(iris)to get it. You then randomly separate the iris data to 2/3 for training and 1/3 for testing.
Use 1-nearest neighbor to do training and testing, and write a report (<= 2 pages in English) showing your procedure and results (i.e., testing accuracy).