Description Usage Arguments Value Author(s) See Also Examples

The optimal number of clusters proposed by the method.

1 | ```
num_clusters(obj)
``` |

`obj` |
the output of kselection function. |

the number of clusters proposed.

Daniel Rodriguez

1 2 3 4 5 6 7 | ```
# Create a data set with two clusters
dat <- matrix(c(rnorm(100, 2, .1), rnorm(100, 3, .1),
rnorm(100, -2, .1), rnorm(100, -3, .1)), 200, 2)
# Get the optimal number of clustes
sol <- kselection(dat)
k <- num_clusters(sol)
``` |

kselection documentation built on May 29, 2017, 9:13 a.m.

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.