edges_to_igraph: Convert edges to igraph object

Description Usage Arguments Value

View source: R/helper.R

Description

Convert edges to igraph object

Usage

1
2
edges_to_igraph(edges, group1.id = NULL, group2.id = NULL,
  count.id = NULL, group1.cluster = NULL, group2.cluster = NULL)

Arguments

edges

Matrix or data.frame or igraph of connection strengths as counts

group1.id

A character string indicating the name of group1 identifier variable in the edges data.frame. It is required in the case of data.frame.

group2.id

A character string indicating the name of group2 identifier variable in the edges data.frame. It is required in the case of data.frame.

count.id

A character string indicating the name of count identifier variable in the edges data.frame. The variable must be numeric.

vertices

A data frame with vertex metadata, or NULL.

Value

igraph object


insongkim/polnet documentation built on March 3, 2020, 11:55 p.m.