fromIgraphToMgraph: From multiple igraph objects to 'mgraph'

Description Usage Arguments Value See Also Examples

View source: R/readNetwork.r

Description

This functions takes a list of igraph objects and convert it to a 'mgraph' object.

Usage

1

Arguments

types

vector of types that represent the layers with the same length as mg

mg

list of 'igraph' objects

Value

class 'mgraph' object

See Also

readMultiplex()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# Read a vector of files
#
## Not run: 

fileName <- c(system.file("extdata",  package = "multiweb"))
dn <- list.files("inst/extdata",pattern = "^Kefi2015.*\\.txt$")
g <- readNetwork(dn,"inst/extdata", skipColumn = 2)
fromIgraphToMgraph(g,c("Negative","Positive","Antagonistic"))


## End(Not run)

lsaravia/EcoNetwork documentation built on Oct. 26, 2020, 11:09 p.m.