[R] k nearest neighbours
Liaw, Andy
andy_liaw at merck.com
Tue Jun 22 16:01:36 CEST 2004
None that I know of, but it should be fairly easy to modify knn() in the
`class' package (part of the VR bundle) and the C code it calls so that the
indices of the neighbors are returned.
HTH,
Andy
> From: Wayne Jones
>
> Hi there fellow R-users,
>
> Does anyone know of a function which does exactly what
> knearneigh{spdep}
> (finds the k nearest neighbours) does in the package spdep
> but for more than
> 2D data?
>
> Regards
>
> Wayne
>
>
>
> KSS Ltd
> Seventh Floor St James's Buildings 79 Oxford Street
> Manchester M1 6SS England
> Company Registration Number 2800886
> Tel: +44 (0) 161 228 0040 Fax: +44 (0) 161 236 6305
> mailto:kssg at kssg.com http://www.kssg.com
>
More information about the R-help
mailing list