reverse_table: Reverse the process of create a contingency table

View source: R/reverse_table.R

reverse_tableR Documentation

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

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)

CrossClustering documentation built on May 29, 2024, 9:22 a.m.