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

David Winsemius
Wed, 31 Aug 2011 14:55:37 -0000

Thank your for your entry in the Poorly Capitalized and Inadequately
Searched Posting Contest. You will be advised of your ranking in due
course. In the meantime, you may want to consult the recommended
search site for []functions and []Task Views  that have "clustering"
and "classification" in their text:

http://search.r-project.org/cgi-bin/namazu.cgi?query=classification+clustering&max=100&result=normal&sort=score&idxname=functions&idxname=views

I originally set the parameters at just "classification" in []Task
Views and []functions but that list was too long.

--
David.

On Aug 31, 2011, at 10:35 AM, jiliguala wrote:

>
> 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.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

David Winsemius, MD
West Hartford, CT