readNet: Read all the networks stored in a given directory

View source: R/NetworkComparisonFunctions.R

readNetR Documentation

Read all the networks stored in a given directory

Description

The function readNet reads all the networks stored in a given directory

Usage

readNet(netDir, directed = FALSE, pattern = "", format = "csv")

Arguments

netDir

Path, directory containing all the networks. NOTE. The networks must be stored in csv format

directed

boolean, value indicating if the networks are directed or not, the default value is FALSE (i.e., undirected networks)

pattern

string, (optional) pattern that the file names must contain to be read. NOTE. If all the networks in netDir are to be read, the parameter pattern can be omitted

format

string, files' format (i.e., extension of the network files). NOTE. If the format is "csv", then the files must contain 2 columns (source - target) and each row must be an edge

Value

List of igraph objects, one per network to compare

Author(s)

Elva Novoa, elva-maria.novoa-del-toro@inrae.fr

Examples

# See the NetworkComparison vignette


MetClassNet/MetClassNetR documentation built on June 30, 2023, 2:12 p.m.