R/w2e.R

Defines functions w2e

Documented in w2e

#' Create edge list from weight matrix.
#' @param x The coefficient matrix from an individual
#' @return A list of all non-zero edges to feed to qgraph
#' @keywords internal
w2e <- function(x) cbind(which(x != 0, arr.ind = TRUE), x[x != 0])

Try the gimme package in your browser

Any scripts or data that you put into this service are public.

gimme documentation built on Aug. 30, 2023, 1:08 a.m.