Try:
library(class)
?knn
example(knn)
Andy
> From: liu qin
>
> Does anybody know how to use nearest neighbour in R to
> predict anything? I am stuck here. I would be really
> really grateful if anyone could help. Thank you for
> the help.
>
> Qin
>
> Ph.D. Student
> U.K.
------------------------------------------------------------------------------
Notice: This e-mail message, together with any attachments,...{{dropped}}
______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html