getWmat | R Documentation |
This function extracts a weights matrix from various kinds of objects.
## 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,...)
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 |
A weights matrix
Sacha Epskamp <mail@sachaepskamp.com>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.