matWide2Long: Reformat

View source: R/misc.R

matWide2LongR Documentation

Reformat

Description

Reformats the diagonal and upper triangular parts of a matrix from the wide format into the long format.

Usage

matWide2Long(mat, stringsAsFactors = FALSE)

Arguments

mat

matrix

stringsAsFactors

if TRUE, character vectors will be converted to factors

Value

data frame

Author(s)

Zheyuan Li [aut] (https://stackoverflow.com/a/41745373/597069), Timothee Flutre [ctb]


timflutre/rutilstimflutre documentation built on Feb. 7, 2024, 8:17 a.m.