symMat: Transform a 3 column pairwise dataframe to a symmetric matrix

View source: R/symMat.R

symMatR Documentation

Transform a 3 column pairwise dataframe to a symmetric matrix

Description

Transform a 3 column pairwise dataframe to a symmetric matrix

Usage

symMat(x, y, z)

Arguments

x

becomes the rownames

y

becomes the colnames

z

becomes the content of the matrix

Value

matrix

Examples

x <- c(2,3,4,3,4,4)
y <- c(1,1,1,2,2,3)
z <- seq_along(y)
symMat(x,y,z)


johngodlee/JLGMisc documentation built on June 29, 2024, 9:15 p.m.