Simple implementation of k nearest neighbours

centroid_matrix | centroid_matrix |

centroid_mean | Calculate centroid mean |

find_group | Calculate group |

knn | Calculate centroid mean |

plot_knn | Plot k-nearest neighbours |

plot_knn_path | Plot centroids paths |

rowNorms | rowNorms |

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.