[R] !!!function to do the knn!!!

jiliguala jiliguala at mail.com
Wed Aug 31 16:35:32 CEST 2011


hi, r users 

i have a problem with KNN.

i have 2 datasets, X0 and X1.

>dim(X0)
>1471*13

dim(X1)
>5221*13

and for every instances in the dataset X1, i want to find the nearest
neighbour(1nn) in the dataset X0.
and i dont have the true classifications of dataset X1.
but the function knn() need true classifications(cl) to do prediction.
i just curious if there are some other function can do that.

any ideas are appreciated.

mark 





--
View this message in context: http://r.789695.n4.nabble.com/function-to-do-the-knn-tp3781137p3781137.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list