as.graph: as.graph

Description Usage Arguments Value Examples

View source: R/lib_network.R

Description

wrapper to convert a data.frame from RITAN an igraph graph object

Usage

1
as.graph(mat, p1 = 1, p2 = 3, ...)

Arguments

mat

matrix or data frame describing a network

p1

[1] column of first interactor

p2

[3] column of second interactor

...

further options passed on to igraph::graph()

Value

igraph object

Examples

1
2
3
4
## Not run: 
G <- as.graph(network_list$PID)

## End(Not run)

MTZimmer/RITAN documentation built on Feb. 21, 2020, 7:09 a.m.