Description Usage Arguments Value Examples

View source: R/kpodclustr-package.r

`kmpp`

Computes initial centroids via kmeans++

1 | ```
kmpp(X, k)
``` |

`X` |
Data matrix whose rows are observations and columns are features |

`k` |
Number of clusters. |

A data matrix whose rows contain initial centroids for the k clusters

1 2 3 4 5 |

```
Loading required package: clues
[,1] [,2]
[1,] 0.8221974 0.4154228
[2,] 1.5216972 -2.5867701
[3,] -0.8873031 0.1523562
```

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.