df2matrix: Coverts a dataframe that corresponds to either the...

View source: R/struc__df2matrix.R

df2matrixR Documentation

Coverts a dataframe that corresponds to either the upper/lower triangle in a matrix into a matrix.

Description

Variables in the data frame: c(name1, name2, value)

Usage

df2matrix(df, diag = 1, dimension = NULL, symmetric = FALSE, replace.na = NA)

Author(s)

Yu Wan (wanyuac@gmail.com)


wanyuac/handyR documentation built on June 10, 2024, 1:24 a.m.