Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

getWmat

Obtain a weights matrix


Description

This function extracts a weights matrix from various kinds of objects.

Usage

## S3 method for class 'matrix'
getWmat(x,nNodes,labels, directed = TRUE,...)
## S3 method for class 'data.frame'
getWmat(x,nNodes,labels, directed = TRUE,...)
## S3 method for class 'igraph'
getWmat(x,labels,...)
## S3 method for class 'qgraph'
getWmat(x,directed,...)

Arguments

x

An input object

nNodes

Number of Nodes

labels

A vector specifying the labels of each node

directed

Logical indicating if the graph should be directed

...

Ignored

Value

A weights matrix

Author(s)

Sacha Epskamp <mail@sachaepskamp.com>


qgraph

Graph Plotting Methods, Psychometric Data Visualization and Graphical Model Estimation

v1.6.9
GPL-2
Authors
Sacha Epskamp [aut, cre], Giulio Costantini [aut], Jonas Haslbeck [aut], Adela Isvoranu [aut], Angelique O. J. Cramer [ctb], Lourens J. Waldorp [ctb], Verena D. Schmittmann [ctb], Denny Borsboom [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.