loadSifInIgraph: Load SIF as igraph Network

Description Usage Arguments Details Value Examples

View source: R/loadSifInIgraph.R

Description

Load SIF as igraph Network

Usage

1
loadSifInIgraph(sif, directed = TRUE)

Arguments

sif

a binary SIF as a data.frame with three columns: "PARTICIPANT_A", "INTERACTION_TYPE", "PARTICIPANT_B"

directed

a boolean weather the returned graph should be directed (DEFAULT: TRUE)

Details

Users are likely to run into issues if the input SIF has factor levels

Value

a directed igraph network with interaction types

Examples

1
2
results <- readSif(system.file("extdata", "test_sif.txt", package="paxtoolsr"))
g <- loadSifInIgraph(results)

paxtoolsr documentation built on Nov. 8, 2020, 8:29 p.m.