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

jiliguala
Wed, 31 Aug 2011 14:35:32 -0000

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.