defineNetwork: Define a network providing its matrix of interactions and...

View source: R/defineNetwork.R

defineNetworkR Documentation

Define a network providing its matrix of interactions and specifying the functions groups in row and col.

Description

Define a network providing its matrix of interactions and specifying the functions groups in row and col.

Usage

defineNetwork(mat, typeInter, rowFG, colFG)

Arguments

mat

An adjacency matrix (symmetric or not) or an incidence matrix

typeInter

Type of the matrix, choice between "inc" (incidence), "adj" (adjacency) and "diradj" (directed adjacency)

rowFG

Name of the functional group in row

colFG

Name of the function group in column

Value

a list object formatted for the GREMLINS package

Examples

A <- matrix(rbinom(100,1,.2),10,10)
type <- "diradj"
defineNetwork(A,"diradj","FG1","FG1")

Demiperimetre/GREMLIN documentation built on March 14, 2023, 12:55 p.m.