View source: R/cluster_profiles.R
get_cluster_fill_rates | R Documentation |
get_cluster_fill_rates()
creates a data frame that shows the proportion of
graphs assigned to each cluster in a cluster template.
get_cluster_fill_rates(df)
df |
A data frame of cluster assignments from |
A data frame of cluster fill rates.
docname <- c(rep("doc1", 20), rep("doc2", 20), rep("doc3", 20))
writer <- c(rep(1, 20), rep(2, 20), rep(3, 20))
doc <- c(rep(1, 20), rep(2, 20), rep(3, 20))
cluster <- sample(3, 60, replace = TRUE)
df <- data.frame(docname, writer, doc, cluster)
rates <- get_cluster_fill_rates(df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.