shape_mat_long: Convert a matrix to long format using row names and column...

View source: R/shape_mat_long.R

shape_mat_longR Documentation

Convert a matrix to long format using row names and column names.

Description

Convert a matrix to long format using row names and column names.

Usage

shape_mat_long(x, unique_pairs = FALSE, na_remove = FALSE)

Arguments

x

Matrix to convert to long format.

unique_pairs

Whether only unique combinations should be included in the output (for symmetric matrices).

na_remove

Logical indicating if NAs should be excluded (removes NaNs too).

Value

A data frame with the columns 'row', 'col' (indicating combinations), and 'value'.


ggcorrheatmap documentation built on Aug. 25, 2025, 1:11 a.m.