Description Usage Arguments Details Value

An auxiliary function to find the nearest neighbors from the distance matrix

1 | ```
kNN(model, k)
``` |

`model` |
nearest neighbor ranking model |

`k` |
number of the nearest neighbors to consider |

This function is applied to find the nearest neighbors in the distance matrix.

a vector of length of `model`

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.