Learn R Programming

CrossClustering (version 4.0.3)

reverse_table: Reverse the process of create a contingency table

Description

Reverse the process of create a contingency table

Usage

reverse_table(x)

Arguments

x

a contingency table

Value

a list of 2 vector corresponding to the unrolled table

Examples

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab