coerce_to_adjacency: Coerce to adjacency matrix

View source: R/hidden_functions.R

coerce_to_adjacencyR Documentation

Coerce to adjacency matrix

Description

Takes an object of type "qgraph", "igraph", or an adjacency matrix (or data.frame) and outputs an adjacency matrix

Usage

coerce_to_adjacency(input, directed = NULL)

Arguments

input

a network of class "igraph", "qgraph", or an adjacency matrix representing a network

directed

logical. is the network directed? If set to NULL, auto-detection is used


networktools documentation built on Aug. 23, 2023, 1:06 a.m.