mvdf: Reorder Matrix for Analysis

Description Usage Arguments Examples

Description

mvdf is not intended for general use. The function takes a list of correlations matrices, grabs the lower triangles and diagonals and unlists by columns.

Usage

1
  mvdf(cor.mats, sep = "_")

Arguments

cor.mats

A square, symetrical matrix with ones on the diagonal (a correlation matrix).

sep

A character string to separate the variable names.

Examples

1
2
3
4
5
6
path <- system.file("extdata/bibTest.bib", package = "metaDAT")
dat <- read.MD(path)
dat <- MDapply(dat, "correlation_triangle", MDlist2matrix, "cor_mats")
mats <- MDget(dat, "cor_mats", s.names=TRUE)
mvdf(mats)
mvdf(mats, "_x_")

trinker/metaDAT documentation built on May 31, 2019, 8:52 p.m.