Learn R Programming

circleplot (version 0.4.1)

make.long.format: Convert a matrix of pairwise associations into a 3-column data.frame

Description

Convert from 'wide' format (matrix with names rows and cols) to 'long' format (3-column data.frame). See make.wide.format for the reverse.

Usage

make.long.format(x)

Arguments

x

a matrix containing the value of the association function between each pair of nodes

Value

Returns a data.frame, in which the first two columns (character) give the names of each pair of nodes, and the third (numeric or integer) gives the degree of association between those nodes.