View source: R/reverse_table.R
reverse_table | R Documentation |
Reverse the process of create a contingency table
reverse_table(x)
x |
a contingency table |
a list of 2 vector corresponding to the unrolled table
clust_1 <- iris[, 1:4] |>
dist() |>
hclust() |>
cutree(k = 3)
clust_2 <- iris[, 1:4] |>
dist() |>
hclust() |>
cutree(k = 4)
cont_table <- table(clust_1, clust_2)
reverse_table(cont_table)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.