name_edge_df: Convert arc matrix to a data frame with named edges

Description Usage Arguments Value See Also

Description

Takes a network, and returns a dataframe containing its edges. The first to columns are from and to nodes, the third column is the name of the edge, i.e. a string in the form "A->B" or "A–B", depending on whether or not the edge is directed. The first two columns correspond to the output of arcs, undirected.arcs, and directed.arcs. In the case of an undirected arc, these functions will produce two rows in their output matrix, eg A–B has two rows "A, B", and "B, A". This function treats undirected arcs the same way.

Usage

1

Arguments

net

object of class bn

Value

a dataframe corresponding to a edge list, where the third column is an edge attribute corresponding to a character name of the edge.

See Also

name_edges, arcs2names


robertness/bninfo documentation built on May 27, 2019, 10:32 a.m.