cluster_frequency | R Documentation |
The function cluster_frequency()
calculates the number and frequency of
individuals assigned to each cluster.
cluster_frequency(
object,
only = NULL,
clusters = NULL,
additional_data = NULL,
...
)
object |
An object for which a summary is desired. |
only |
< The default |
clusters |
< The default |
additional_data |
A data frame with additional data that may be
(left-)joined onto the |
... |
Additional arguments passed to the specific summary sub-function. |
cluster_frequency()
calculates the number of individuals assigned to
each cluster and the associated frequency of assignment.
cluster_frequency()
returns a data frame with class
cluster_frequency
.
Clustering
the name of the clustering.
Cluster
the cluster name.
Count
the number of individuals assigned to the cluster.
Percent
the percent of individuals assigned to the cluster.
clust <- medic(complications, id = id, atc = atc, k = 3:5)
# make frequency tables
cluster_frequency(clust, k == 5)
cluster_frequency(clust, k < 5, I:III)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.